Converting IBM Ascii to utf-8
Posted: Wed Feb 15, 2006 5:13 am
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
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