Re: Print Spanish characters in Perl?
- From: Bill H <bill@xxxxxxxxx>
- Date: Fri, 20 Jun 2008 03:58:34 -0700 (PDT)
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
.
- Follow-Ups:
- Re: Print Spanish characters in Perl?
- From: Jürgen Exner
- Re: Print Spanish characters in Perl?
- References:
- Print Spanish characters in Perl?
- From: DanB
- Re: Print Spanish characters in Perl?
- From: Jürgen Exner
- Print Spanish characters in Perl?
- Prev by Date: Re: Learning Perl
- Next by Date: Re: FAQ 8.2 How come exec() doesn't return?
- Previous by thread: Re: Print Spanish characters in Perl?
- Next by thread: Re: Print Spanish characters in Perl?
- Index(es):
Relevant Pages
|