473,503 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Japanese words

Hi,

I'm trying to read a varchar(50) field writed in Japanese using this
sentence:

is = rset.getBinaryStream(num);

at that sentence the JDBC driver shows the following error:

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC]Unsupported data conversion.

Does anybody know why?

Thank you,

--
__________________________________________
Emilio Perez
em**********@sinergiatec.com

SINERGIA TECNOLÓGICA
C/ Eusebio Sempere 1, Entreplanta A
30003 Alicante
Tel. 965 136 191
www.sinergiatec.com
__________________________________________

La información incluida en el presente correo electrónico es CONFIDENCIAL,
siendo para el uso exclusivo del destinatario arriba mencionado. Si usted
lee este mensaje y no es el destinatario señalado, el empleado o el agente
responsable de entregar el mensaje al destinatario, o ha recibido esta
comunicación por error, le informamos que está totalmente prohibida
cualquier divulgación, distribución o reproducción de esta comunicación, y
le rogamos que nos lo notifique, nos devuelva el mensaje original a la
dirección arriba mencionada y borre el mensaje. Gracias.
Jul 20 '05 #1
2 1880

"Emilio Perez" <em**********@sinergiatec.com> wrote in message
news:wN*******************@news.ono.com...
Hi,

I'm trying to read a varchar(50) field writed in Japanese using this
sentence:

is = rset.getBinaryStream(num);

at that sentence the JDBC driver shows the following error:

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC]Unsupported data conversion.

Does anybody know why?

Thank you,

--
__________________________________________
Emilio Perez
em**********@sinergiatec.com

SINERGIA TECNOLÓGICA
C/ Eusebio Sempere 1, Entreplanta A
30003 Alicante
Tel. 965 136 191
www.sinergiatec.com
__________________________________________

La información incluida en el presente correo electrónico es CONFIDENCIAL,
siendo para el uso exclusivo del destinatario arriba mencionado. Si usted
lee este mensaje y no es el destinatario señalado, el empleado o el agente
responsable de entregar el mensaje al destinatario, o ha recibido esta
comunicación por error, le informamos que está totalmente prohibida
cualquier divulgación, distribución o reproducción de esta comunicación, y
le rogamos que nos lo notifique, nos devuelva el mensaje original a la
dirección arriba mencionada y borre el mensaje. Gracias.


I don't really know, but the most obvious data type for Japanese in MSSQL
would be nvarchar(50), ie. Unicode. Apart from that, varchar/nvarchar are
character data, not binary, so perhaps you should be using a different
method instead of getBinaryStream()?

Simon
Jul 20 '05 #2
Emilio said:
I'm trying to read a varchar(50) field writed in Japanese using this
sentence:
is = rset.getBinaryStream(num);
at that sentence the JDBC driver shows the following error:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC]Unsupported data conversion.

Simon said: I don't really know, but the most obvious data type for Japanese in MSSQL
would be nvarchar(50), ie. Unicode. Apart from that, varchar/nvarchar are
character data, not binary, so perhaps you should be using a different
method instead of getBinaryStream()?


I have successfully used the MS JDBC driver for SQL server to select/insert
Chinese data from MSSQL server. I used getBinaryStream() for the field.

The problem is probably because of the data type - try nvarchar instead of
varchar, as Simon said.
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8979
by: David Thomas | last post by:
Hi there, a while ago, I posted a question regarding reading japanese text from a text file. Well, since I solved the problem, I thought I'd post my solution for the benefit of other people with...
699
33322
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
3
5128
by: Keitaro | last post by:
Hi, I am developing a vocabulary trainer. The languages I want to support are German and Japanese. When I try to store Japanese characters in my mysql database, I do not get the correct...
1
4774
by: Sven Hanefeld | last post by:
Hi, who is able to help. I want to translate my whole website into japanese language. www.nord-com.net/hanefeld What do I have to do except finding a japanese guy for the translation. Do I...
3
2514
by: Benoit Martin | last post by:
in my windows app, I have some japanese text that I load from a text file and display on a label. No matter what type of encoding I try to use on the text file, the text always comes up as a bunch...
3
1176
by: rajasekaran.natarajan | last post by:
Hi friends, I am writing my Japanese study program and a GUIt. I am facing a problem in an entry widget where I enter Japanese words. The entered Japanese word is accessed by the callback...
21
2457
by: Doug Lerner | last post by:
I'm working on a client/server app that seems to work fine in OS Firefox and Windows IE and Firefox. However, in OS X Safari, although the UI/communications themselves work fine, if the...
1
3020
by: tony.pahl | last post by:
We are converting a data warehouse to a Unicode database to get ready for multilingual support. If we will have 95% of our data in English as we currently do, and less than 5% in other foreign...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7458
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.