How do I output Unicode characters as a pair of ASCII characters?

Posted by ChrisF on Stack Overflow See other posts from Stack Overflow or by ChrisF
Published on 2010-04-13T21:12:27Z Indexed on 2010/04/13 21:13 UTC
Read the original article Hit count: 253

Filed under:
|
|

How do I convert (as an example):

Señor Coconut Y Su Conjunto - Introducciõn

to:

Señor Coconut Y Su Conjunto - Introducciõn

I've got an app that creates m3u playlists, but when the track filename, artist or title contains non ASCII characters it doesn't get read properly by the music player so the track doesn't get played.

I've discovered that if I write the track out as:

#EXTINFUTF8:76,Señor Coconut Y Su Conjunto - Introducciõn
#EXTINF:76,Señor Coconut Y Su Conjunto - Introducciõn
#UTF8:01-Introducciõn.mp3
01-Introducciõn.mp3

Then the music player will read it correctly and play the track.

My problem is that I can't find the information I need to be able to do the conversion properly.

© Stack Overflow or respective owner

Related posts about unicode

Related posts about c#