-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code page problem #27
Comments
Hi @orenz. What does your connection string look like? Have you tried specifying the charset connection parameter? (http://dev.mysql.com/doc/refman/5.0/en/connector-odbc-configuration-connection-parameters.html) |
"ODNC;DSN=kuku;DRIVER=MySQL ODBC 5.2w works with C++ ODBC well On Mon, Nov 5, 2012 at 5:08 PM, Dan VerWeire notifications@github.comwrote:
|
OK. I will have to research this. We just use |
The issue might be that we were specifying SQL_CHAR for TargetType in the case of SQLRETURN SQLGetData(
SQLHSTMT StatementHandle,
SQLUSMALLINT Col_or_Param_Num,
SQLSMALLINT TargetType,
SQLPOINTER TargetValuePtr,
SQLLEN BufferLength,
SQLLEN * StrLen_or_IndPtr); Better results might be had if using SQL_C_WCHAR, but I am not sure. I have tried testing this against my MSSQL server which has some Hebrew characters in an NVARCHAR field, but am not getting those same characters back. Not sure where the problem lies. If you have working C++ ODBC code, what does your |
OK, I think I have resolved this issue; at least as far as my tests go. It's going to have to cook for a while though before it makes its way to a release. The issue was a combination of previously using SQL_CHAR for the TargetType and the buffer being a You can get the code from my v0.4-separation branch: https://github.com/wankdanker/node-odbc/tree/v0.4-separation |
I really appreciate this. On Mon, Nov 5, 2012 at 9:53 PM, Dan VerWeire notifications@github.comwrote:
|
Hi |
Hi @orenz, You can use npm to install from git repositories if you are on a system that has git; like this:
Where everything after the # is a branch, tag or commit hash. It would be nice if you would test the v0.5 branch also/instead. That version has a test runner and some tests which include a Unicode test that may be related to your issue.
If you are on Windows, you will have to grab a zip file from github of the branch or tag. Here is a link to the v0.5 zip file: https://github.com/wankdanker/node-odbc/archive/v0.5.zip Hope this helps, Dan |
I am on win. odule.js:340 what is wrong ? On Wed, Nov 21, 2012 at 5:53 PM, Dan VerWeire notifications@github.comwrote:
|
run |
How can I install from a file directory ? On Wed, Nov 21, 2012 at 6:55 PM, Dan VerWeire notifications@github.comwrote:
|
I'm not sure if I understand what you are asking. But you could also install the bindings module by downloading a zip file from github (https://github.com/TooTallNate/node-bindings/archive/master.zip) and placing the contents in |
Sorry , got it working. On Wed, Nov 21, 2012 at 7:06 PM, Dan VerWeire notifications@github.comwrote:
|
Hi @orenz, It should include the fix and it work OK for me. But, I may be missing something. Could you post your MySQL Create Table statement, some insert statements and your select statement for your test case? We need to get on the same page so I can see what is going on. Thanks, Dan |
I created a quick test case of my own and had to use |
utf8 WORKS !!!, Thanks, On Wed, Nov 21, 2012 at 7:53 PM, Dan VerWeire notifications@github.comwrote:
|
on SqlServer if server collation is Hebrew_CI_AS the Hebrew doe's not well On Wed, Nov 21, 2012 at 10:48 PM, Oren Zbeda oren.zbeda@gmail.com wrote:
|
Hey @orenz, if you are still having this issue, try installing with Thanks, Dan |
This may or may not be fixed here: https://github.com/wankdanker/node-odbc/tree/v0.5.17. Going to close this issue due to inactivity. |
I use Hebrew code page on mysql.
English letters are Ok, however Hebrew letters come out wrong.
When I use mysql native driver all is OK.
I guess all non UFT8 code pages has the same problem.
The text was updated successfully, but these errors were encountered: