Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Encoding Problems
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Luis Lavena  
View profile  
 More options Nov 26 2011, 1:53 pm
From: Luis Lavena <luislav...@gmail.com>
Date: Sat, 26 Nov 2011 15:53:37 -0300
Local: Sat, Nov 26 2011 1:53 pm
Subject: Re: [sqlite3-ruby] Encoding Problems

On Wed, Nov 23, 2011 at 5:39 PM, spectr <tkani...@gmail.com> wrote:
> I am running into encoding problems:

> db = SQLite3::Database.new "encoding.db"
> => #<SQLite3::Database:0x9b69cbc>

> db.encoding
> => #<Encoding:UTF-16LE>

> r1 = db.execute("select * from db_log_sink limit 2").first.last
> => "\u7953\u7473\u6D65\u5420\u6D69\u7A65\u6E6F
> \u3A65\u4520\u5453\u2F20\u4520\u5444\x0A"

> r2 = db.execute("select * from db_log_sink limit 2").last.last
> => "????????\u0A3A"

> r1.encoding
> => #<Encoding:UTF-16LE>

> r2.encoding
> => #<Encoding:UTF-8>

How are you storing that data? can you show us the code you use to insert it?

Can you check the encoding when inserting?
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.