Newbie question: Working with iso-8859-1 files in Ruby

P

Peter Krantz

Hi!

I am trying to load and parse text files with various encodings. Some
are iso-8859-1, some are pure ASCII and others utf-8. None of them
contain characters not available in iso-8859-1. What is a good
strategy to use when working with the standard string methods in Ruby
s =3D "hell=F6"
s.upcase =3D=3D "HELL=D6"
=3D> false

Kind regards,

Peter
 

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,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top