-----Ursprungligt meddelande-----
Från: tedd [mailto:[EMAIL PROTECTED]
Skickat: den 30 maj 2006 15:10
Till: Jonas Rosling; PHP List
Ämne: Re: [PHP] Converting text strings [out of topic a bit]


At 10:17 AM +0200 5/30/06, Jonas Rosling wrote:
>Hi all,
>when my documents are using iso-8859-1 (Latin 1) as char set I have some
>problems with displaying my JS dialogs correct with none international
>characters (å, ä and ö). Allthough this hasen't got anything to do with
PHP,
>does anyone have any good idéas on how to solve this?
>
>Normaly I use UTF-8 as char set, but in this case I need to use iso-8859-1
>(Latin 1).
>
>Thanks // Jonas

Jonas:

The iso-8859-1 char-set does include the
characters you mention, so using either utf-8 or
iso-8859-1 should work, but that isn't the
problem with displaying the characters in html.

As to how to solve the problem, I would look into
using Unicode characters, such as &#224 (HEX
00E5) OR look into using html characters such as
à which both are å.

Some references:

http://www.w3.org/MarkUp/html3/latin1.html
http://www.htmlhelp.com/reference/charset/
http://www.natural-innovations.com/wa/doc-charset.html

I used both in displaying:

http://www.xn--ovg.com/a2.php

This example does not speak for all browsers -- I shall remove/replace soon.

As for a look-up table for displaying these types
of characters, I remember someone writing one for
this list a few months ago -- you might look
there. If you find it, please provide to me
privately.

Thanks.

hth's

tedd
--

Thanks Tedd, but that doesn't seem to work in the JS code.

// Jonas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to