Home » U++ Library support » U++ SQL » Oracle8: UTF8 charset Patch
Re: Oracle8: UTF8 charset Patch [message #27340 is a reply to message #27338] |
Tue, 13 July 2010 08:36 |
|
rylek wrote on Tue, 13 July 2010 02:20 | Hi there!
After playing with one of my applications which started to malfunction after Mirek applied tojocky's patch I found out that the patch doesn't solve all related problems and in fact creates new ones.
|
Hello Tomas,
Thank you for testing my patch and improve the functionality.
Quote: | have the default application charset set to WIN1250. The databases on the servers have the same codepage so no conversion is necessary.
|
When you load the library and try to connect to the database you do not know the DB encoding! The solution I found to set utf8 charset.
Your patch is very useful. My default charset of application is UTF8 and I did not need to convert the data to/from utf8. Thanks!
But I can't understand:
void OCI8Connection::SetParam(int i, const Value& q) {
.................
case STRING_V:
SetParam(i, WString(q));
break;
case WSTRING_V:
SetParam(i, String(q));
break;
...................
}
You convert into string if type is WString and vice-versa. Why?
Quote: | DisableUtf8Mode turns off the new OCIEnvNlsCreate-related code and leaves the client communicating in the native character set
|
How to prevent the user if he tries to DisableUtf8Mode after connected. Nothing happening?
The problems with Oracle 8 is: the charset OCI_NLS_NCHARSET_ID_UT8 is not true UTF8 and may create some problems. I test my patch with Oracle 10 (uses OCI_NLS_NCHARSET_ID_AL32UT8) and works fine with my default charset of application UTF8!
Thanks for patch.
|
|
|
|
|
Oracle8: UTF8 charset Patch
By: tojocky on Fri, 28 May 2010 13:59
|
|
|
Re: Oracle8: UTF8 charset Patch
By: mirek on Fri, 28 May 2010 14:54
|
|
|
Re: Oracle8: UTF8 charset Patch
By: tojocky on Fri, 28 May 2010 19:15
|
|
|
Re: Oracle8: UTF8 charset Patch
By: tojocky on Fri, 28 May 2010 22:19
|
|
|
Re: Oracle8: UTF8 charset Patch
By: mirek on Sun, 30 May 2010 21:15
|
|
|
Re: Oracle8: UTF8 charset Patch
By: tojocky on Mon, 31 May 2010 08:27
|
|
|
Re: Oracle8: UTF8 charset Patch
By: rylek on Tue, 13 July 2010 01:20
|
|
|
Re: Oracle8: UTF8 charset Patch
By: tojocky on Tue, 13 July 2010 08:36
|
|
|
Re: Oracle8: UTF8 charset Patch
By: rylek on Wed, 14 July 2010 01:39
|
|
|
Re: Oracle8: UTF8 charset Patch
By: tojocky on Wed, 14 July 2010 08:56
|
|
|
Re: Oracle8: UTF8 charset Patch
By: rylek on Wed, 21 July 2010 22:48
|
|
|
Re: Oracle8: UTF8 charset Patch
By: mirek on Wed, 21 July 2010 23:49
|
|
|
Re: Oracle8: UTF8 charset Patch
By: tojocky on Mon, 26 July 2010 18:04
|
Goto Forum:
Current Time: Wed May 15 22:01:00 CEST 2024
Total time taken to generate the page: 0.02619 seconds
|