Hi all.
I have a database (sqlite) with Ansi - Latín I codepage. With a Select
statement in Ruby, the data returned are in UTF-8. E. g.:
Database: ocupación
Ruby : ocupaci\xC3\xB3n
How can I display the correct data (i. e., ocupación)?
Thanks a lot.
···
--
Posted via http://www.ruby-forum.com/.
All that depends on the console encoding you're trying to output that
information to.
If is terminal on Linux/OSX, most likely is going to work as console
is UTF8
On Windows, you need the console be set the codepage to 1252, which is
not default (use chcp)
···
On Jan 20, 4:46 pm, Noé Alejandro <casan...@gmail.com> wrote:
Hi all.
I have a database (sqlite) with Ansi - Latín I codepage. With a Select
statement in Ruby, the data returned are in UTF-8. E. g.:
Database: ocupación
Ruby : ocupaci\xC3\xB3n
How can I display the correct data (i. e., ocupación)?
--
Luis Lavena