Converting IBM Ascii to utf-8

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
stigur
Forum Newbie
Posts: 1
Joined: Wed Feb 15, 2006 5:00 am

Converting IBM Ascii to utf-8

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

have you tried iconv?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

viewtopic.php?t=36549 may be of interest.
Post Reply