Page 1 of 1

Converting IBM Ascii to utf-8

Posted: Wed Feb 15, 2006 5:13 am
by stigur
Hi,

I am using PHP to take some old files apart and store them in XML-format.
The old files are stored in the ascii that IBM originally put forward.
Since the files hold text in danish, the letters Æ, Ø and Å are giving me problems, since windows has given them a different value, compared to IBM.
(http://www.jimprice.com/jim-asc.htm)
I have tried different solutions that work only semi-satisfying.
If anyone know of code written to do this for me or other thoughts/solutions,
it would be a great help.
Ending up in utf-8 would solve all my worries, including using the text-snippets in SVG.

Cheers from DK,
Stigur

Posted: Wed Feb 15, 2006 8:08 am
by Weirdan
have you tried iconv?

Posted: Wed Feb 15, 2006 9:40 am
by feyd
viewtopic.php?t=36549 may be of interest.