Page 1 of 1
Sorting Umlauts ?
Posted: Mon Sep 15, 2008 3:05 am
by tchristian
Hello Guys,
I am new here. And I need help on sorting umlauts (german umlauts). So, in the database I have stored the O Umlauts using the HTML: "Ö". Now, it will be a problem when I am trying to sort the list.
Any suggestions on sorting Umlauts ?
Thanks a lot,
Chris
Re: Sorting Umlauts ?
Posted: Mon Sep 15, 2008 5:40 am
by tchristian
So, I finally made my database into UTF-8, and it did sort correctly, but the browser does not display it correcly, such as A1`/4 or something like that if you have ever saw it...
And, at my browser, I went to VIEW --> Encoding --> and set it to UTF-8....so, it has to be displayed manually, what if someone opens a browser and he/she does not know how to set the encoding ? I would really like to do it automatically.
Any ideas how to set Browser Encoding from the script (PHP or Javascript) ?
Thanks,
Chris
Re: Sorting Umlauts ?
Posted: Mon Sep 15, 2008 5:47 am
by jmut
If changing broswer encoding options works for you then I guess this
Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
should do... put in head tag.
Re: Sorting Umlauts ?
Posted: Mon Sep 15, 2008 6:21 am
by VladSun
Code: Select all
header('Content-type: text/html; charset=UTF-8');
The META-tag has no effect if a HTTP header is send.