Windows XP can create a Résumé.html file but ruby cannot.

D

Dave.Hurrell

Windows XP can create a R=E9sum=E9.html file but ruby cannot. Why?

The following code created the wrong filename
File.open("R=E9sum=E9.html","w") { |file| file.write('xxx'); }

Also, this code does not work
str =3D "R=E9sum=E9.html"
filename =3D Iconv.conv('UTF-16','UTF-8',str)
File.open(filename,"w") { |file| file.write('xxx'); }

If I manually rename the file to R=E9sum=E9.html, it does work.

Setting the $KCODE=3D"u" or $KCODE=3D"UTF8" makes no difference.

Whats wrong with ruby v1.8.7 (or is it me)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top