Character encoding probs?
-
Hi.
I am writing a PHP script that imports data from CFDB and sorts it by various parameters. Since this is for a Swedish website, I need the alphabetical sort order to be Swedish (abcdefghijklmnopqrstuvxyzåäö). I almost get the right sort order when sorting text written into my code:
Array ( [0] => Göteborg [1] =>Uppsala [2] => Öland )
but when I fetch the data from CFDB, the sort order is completely whacky.
Array ( [0] => Öland [1] => Göteborg [2] => Uppsala )
I guess it has to do with character encoding. Which kind of encoding can I expect from CFDB and do you know to what it should be converted and how?
- The topic ‘Character encoding probs?’ is closed to new replies.