aspose file tools*
The moose likes JDBC and the fly likes Fail to convert between UTF8 and UCS2: failUTF8Conv Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Fail to convert between UTF8 and UCS2: failUTF8Conv" Watch "Fail to convert between UTF8 and UCS2: failUTF8Conv" New topic
Author

Fail to convert between UTF8 and UCS2: failUTF8Conv

Shashi Prakash
Ranch Hand

Joined: Mar 28, 2007
Posts: 40
Hi ,

From my JSp page I am getting this exception --

java.sql.SQLException: Fail to convert between UTF8 and UCS2: failUTF8Conv


Can you pelase help me with this. I don't have any idea what is this about..
[ August 03, 2007: Message edited by: Bear Bibeault ]

Thanks,<br />Target Scwcd<br />SCJP 1.4
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

SQL exceptions have nothing to do with JSP. Moved to the JDBC forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
try searching with Google on "failUTF8Conv"

I found a lot of information.
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3710
    
    5

That type of error is usually related to a character set issue, the character set the data is stored in the database is different from how its read. You may want to use a more native format for reading the data such as getBytes() and/or change the character encoding for the system.


My Blog: Down Home Country Coding with Scott Selikoff
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Fail to convert between UTF8 and UCS2: failUTF8Conv