Re: Japanese words
From: Simon Hayes (sql_at_hayes.ch)
Date: 08/03/04
- Next message: Tony: "Re: Storing a dynamically created PDF file in a blob field"
- Previous message: Emilio Perez: "Japanese words"
- In reply to: Emilio Perez: "Japanese words"
- Next in thread: KC Wong: "Re: Japanese words"
- Reply: KC Wong: "Re: Japanese words"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 3 Aug 2004 19:27:36 +0200
"Emilio Perez" <emilio.perez@sinergiatec.com> wrote in message
news:wNIPc.459$Ul5.1631027@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
> emilio.perez@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
- Next message: Tony: "Re: Storing a dynamically created PDF file in a blob field"
- Previous message: Emilio Perez: "Japanese words"
- In reply to: Emilio Perez: "Japanese words"
- Next in thread: KC Wong: "Re: Japanese words"
- Reply: KC Wong: "Re: Japanese words"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|