having problem in printing out correct character

L

Li Chen

Hi all,

I copy some texts from a pdf file and save them in a text file. I
extract some info from the text file, write them to a yaml file. Then I
use a script to print out the yaml file. It works OK most of the time.
But I am a bit annoyed that sometimes it can mess up with some words,
such as "passé".
How am I going to fix it?


Thanks,

Li
 
T

The Higgs bozo

I copy some texts from a pdf file and save them in a text file. I
extract some info from the text file, write them to a yaml file. Then I
use a script to print out the yaml file. It works OK most of the time.
But I am a bit annoyed that sometimes it can mess up with some words,
such as "passé".
How am I going to fix it?

I have no idea, and I've never dealt with these issues. So I asked
Google,

http://groups.google.com/groups/search?hl=en&q=ruby+convert+unicode+ascii

The first hit answers your question.
 

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

Forum statistics

Threads
474,196
Messages
2,571,036
Members
47,631
Latest member
kukuh

Latest Threads

Top