mysqljs / mysql

A pure node.js JavaScript Client implementing the MySQL protocol.
MIT License
18.26k stars 2.53k forks source link

connection charset #15

Closed Gazer closed 13 years ago

Gazer commented 13 years ago

I'm connecting to a database that has latin1 as charset on all tables, but when I send the data via nodejs to the client, the extended characters are broken (I suppose because nodejs and javascript in general user utf-8 as default encoding).

I try to change the client.charsetNumber but I'm not sure what the number means (and what are valida ones). I take a look at the mysql protocol without luck.

The working demo is running at [1], and basically is pulling all post from a vbulletin database and creating a 'timeline' in realtime, with nodejs on the server.

Any help is appreciated :)

[1] http://playground.3dgames.com.ar/3dg-live/index.html

Gazer commented 13 years ago

Nevermind, I should not post with read caraefuly all issues :D

issue #11 works for mi :)

felixge commented 13 years ago

This is now fixed by default in 31e43ec9d47b7f35a2e4f1fdb38e3c3b602d2106.