Re: Print Spanish characters in Perl?



DanB <dbxxxxxxx@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
.



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: Special Characters in Query String
    ... I've had numerous problems with utf-8, ... in common characters in spanish not geting displayed. ... > available for encoding of characters. ... > If you can display your characters with ISO-8859-1, ...
    (microsoft.public.dotnet.framework.aspnet)
  • 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)
  • Re: Unicode-based FreeBSD
    ... maps UTF-8 to 256 characters it is actually able to display. ... Or, in other words, always map from UTF-8. ... There are many applications that do not yet support UTF-8. ...
    (freebsd-current)
  • Problems with UTF8. Unicode, ADO and MySQL
    ... is stored in utf-8 format in order to accomodate for a wide range of ... W2003 server, making no changes, and then try to display the text from ... for non latin characters. ... seems to have little effect) and I have saved all my asp files in utf-8 ...
    (microsoft.public.data.ado)