Re: Print Spanish characters in Perl?



On Jun 20, 12:37 am, Jürgen Exner <jurge...@xxxxxxxxxxx> wrote:
DanB <dbxxxx...@xxxxxxxxx> wrote:
I am trying to build a set of Spanish flash cards using TK, and I need to
be able to display the accented characters.  I know that I need to specify
them in some unicode besides utf-8,

Actually, you don't. Just put them into your code in your favourite
editor and treat them like any ASCII character.

A problems arise only if your editor saves the file in a different
encoding then your display device expects. Typical examples are e.g.
saving as UTF-8, then including the text in an HTML page but forgetting
to specify UTF-8 as charset. In this case the browser defaults to
ISO-Latin-1 and the non-ASCII characters will be messed up, of course.
Or saving the file as Windows-1252 (or ISO-Latin-1) and then viewing the
output in a DOS Window which for western languages uses OEM CP 850.

jue

I know if I am writing some code using Edit.com (yes dos - can't get
away from the simplicity of it) I can add the foriegn language
characters to my programs just using the ALT+0??? code and it works
fine. I haven't tried doing it in a windows based editor.



Bill H
.



Relevant Pages

  • Re: Print Spanish characters in Perl?
    ... and ensure that your file is saved in the UTF-8 format. ... encoding then your display device expects. ... forgetting to specify UTF-8 as charset. ... To avoid this kind of problem, make sure that all the characters are ...
    (comp.lang.perl.misc)
  • Re: Open html as source
    ... Word X -- Word X can't display most Unicode. ... characters as two symbols, so I suppose it forgot that it's UTF8. ... Choose UTF-8 at that point. ...
    (microsoft.public.mac.office.word)
  • =?utf-8?B?UmU6IFN0cmluZyAiw6LigqzihKIiIHRyYW5zbGF0ZWQgdG8gYXBvc3Ryb3BoZS4gV2h5Pw==?=
    ... it works), though it seems to use mostly just Ascii characters, representing ... but the author is not making the best possible use of UTF-8. ... They don't map it to ASCII apostrophe, ... Latin 1 encoding. ...
    (alt.html)
  • [PATCH] UTF-8 input: composing non-latin1 characters, and copy-paste
    ... One can put the keyboard driver into Unicode mode, load a Unicode keymap, and get single keystrokes generate valid UTF-8 for non-ASCII characters. ...
    (Linux-Kernel)
  • Re: Attention: European C/C++/C#/Java Programmers-Call for Input
    ... For any language using a Latin ... Look at existing tools and source code that supports UTF-8, and see how it can make your work easier and give a result that users might actually be able to *use*. ... But you'll find something that does a reasonable job and *will* work perfectly for most programmers who stick to ASCII identifiers. ... A related problem is if you are making identifiers case-insensitive - it's hard to figure out cases for non-ASCII characters. ...
    (comp.arch.embedded)