Problem with unicode in 80GB Classic

I listen to a lot of foreign bands and artists, mainly Japanese bands. I recently changed some of the artists' names to unicode, in order to separate them from the Non-Japanese bands on the last.fm site. Everything looks fine in iTunes when I view them, but when I go to look at the list of artists in my iPod, I have some artist names listed multiple times, some with the new unicode writing, others the regular font. I have checked for trailing spaces, etc., but I still get the same result. Does the iPod not support unicode, or is there something I can do to fix this?

I got it fixed now. I just had to make sure that all the songs also had the album artist in unicode.

Similar Messages

  • I recently upgraded from an 80 to 160GB Classic but only some of the artwork in iTunes is synching. There was no problem with the old 80Gb classic. any suggestions?

    I recently upgraded from an 80 to 160GB Classic but only some of the artwork in iTunes is synching. There was no problem with the old 80Gb classic. any suggestions?

    here is an interesting thing: take the iphone and set lock screen to never. Now make an email with siri--be sure to activate her with call button. get to the body and get some text in there. then just stop talking. LOCK SCREEN APPEARS!!!!!! and of course you draft is gone.
    There does seem to be a work around for some--maybe all these issues. Don't use the call button--use the buttons on the phone.
    Siri seems to behave properly with scenerio above---sans call button. She does not go to lock.

  • Problem with unicode in MIME text/html

    Hi;
    I have a java program that sends email by sending it to our exchange server using SMTP. The email has both a To and a Bcc in the single email sent.
    The bcc addressee receives the email fine.
    The to address however has a problem with chars that are > 0x7f in the html. The html uses utf-8. But the displayed characters look as though the utf-8 part was ignored.
    Also weird, if I go to view, options in Outlook for the bcc email (which is good) it shows:
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=_Part_0_32437168.1135634913407"
    Return-Path: [email protected]
    X-OriginalArrivalTime: 26 Dec 2005 22:08:33.0366 (UTC) FILETIME=[E94D1F60:01C60A68]
    ------=_Part_0_32437168.1135634913407
    Content-Type: text/plain; charset=Cp1252
    Content-Transfer-Encoding: quoted-printable
    ------=_Part_0_32437168.1135634913407
    Content-Type: text/html; charset=Cp1252
    Content-Transfer-Encoding: quoted-printable
    ------=_Part_0_32437168.1135634913407--
    But for the to email (which has the problem), it only shows:
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=_Part_0_32437168.1135634913407"
    Return-Path: [email protected]
    X-OriginalArrivalTime: 26 Dec 2005 22:08:33.0366 (UTC) FILETIME=[E94D1F60:01C60A68]
    Does javamail do anything weird when it gets an email with a to and a bcc and split it up wrong? I just download and installed the latest mail.jar and activation.jar.
    thanks - dave

    OK...this didnt quite cure it for me...but having done this AND then this...
    MimeBodyPart htmlText = new MimeBodyPart();
    final String htmlStuff = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
    + "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
    + "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">"
    + "<head>"
    + "<title>Stuff.</title>"
    + "<meta http-equiv=\"Content-Type\" content=\"application/xhtml+xml; charset=utf-8\"/>"
    + "</head><body>"
    + "<p>Currency Symbols: \u00A3\u00A2\u20A3\u20AC$<p>"
    + "</body></html>";
    DataSource htmlSource = new DataSource()
    private String stuff = htmlStuff;
    private Charset cset = Charset.forName("utf-8");
    public String getContentType() { return "text/html"; };
    public java.io.InputStream getInputStream() throws IOException
    return new ByteArrayInputStream(cset.encode(stuff).array());
    public String getName()
    return null;
    public OutputStream getOutputStream() throws IOException
    throw new IOException();
    htmlText.setDataHandler(new DataHandler(htmlSource));
    htmlText.addHeader("Content-Transfer-Encoding","base64");
    This works for me as shown by the Unicode chars in the html.
    If you intend to take this to production create a decent external DataHandler class and avoid the use of the anonymous class - which then avoids the need for the final String and the string can come from anywhere then.
    Hope this helps,
    Barry

  • Alpine CDE-103Bt Head Unit and Problem with 160 Gig Ipod Classic

    Hi,
    2 weeks agao I brought a new Alpine CDE-103BT Head unit for my car. I have owned one of the old 160 gig classics for the last year and a half and at the time I brough the unit I was told this should all work sweet. Indeed all of the documentation from Alpine, and the Sales person, said this would not be a problem.
    Unfortunately from Day one, most times after I received a phone call, while playing my ipod, the Head Unit would givesme an "Error-03" message and stop playing my music. I would then have to unplug my ipod, reset it, and plug it back in. Extremely frustrating.
    The people I brought the Head Unit from are trying to say its an Ipod problem, yet I never had any problems with it and after I contacted the Australian Ipod help line they said it all appears to be working correctly. The firmware version I was on when I first tried the ipod on the head unit was 1.1.2. The Alpine manual said it should be 1.1.1 (then again you would expect them to be able to cope with updates) so as a last ditch attempt I downgraded the firmware on my ipod to 1.1.1, but it did not make a difference.
    The only other thing I have noticed is that I switch the repeat and shuffle settings off when I plug in the unit, but after I unplug it after an Error-03 the Repaet function has been swtiched to all - I am not sure if this is what is causing the problem.
    I am getting pretty frustrated with everything and I was wondering if anyone else has come accross this issue and even me helpful had they found a way to fix it.
    If not has anyone had any postive expereinces with Alpine head units?
    Thanks

    Hi,
    2 weeks agao I brought a new Alpine CDE-103BT Head unit for my car. I have owned one of the old 160 gig classics for the last year and a half and at the time I brough the unit I was told this should all work sweet. Indeed all of the documentation from Alpine, and the Sales person, said this would not be a problem.
    Unfortunately from Day one, most times after I received a phone call, while playing my ipod, the Head Unit would givesme an "Error-03" message and stop playing my music. I would then have to unplug my ipod, reset it, and plug it back in. Extremely frustrating.
    The people I brought the Head Unit from are trying to say its an Ipod problem, yet I never had any problems with it and after I contacted the Australian Ipod help line they said it all appears to be working correctly. The firmware version I was on when I first tried the ipod on the head unit was 1.1.2. The Alpine manual said it should be 1.1.1 (then again you would expect them to be able to cope with updates) so as a last ditch attempt I downgraded the firmware on my ipod to 1.1.1, but it did not make a difference.
    The only other thing I have noticed is that I switch the repeat and shuffle settings off when I plug in the unit, but after I unplug it after an Error-03 the Repaet function has been swtiched to all - I am not sure if this is what is causing the problem.
    I am getting pretty frustrated with everything and I was wondering if anyone else has come accross this issue and even me helpful had they found a way to fix it.
    If not has anyone had any postive expereinces with Alpine head units?
    Thanks

  • Unsure what to do with my broken 80gb classic.

    I have just received a 80gb classic as a gift from my work, it arrived tuesday and was working fine, i updated it to the latest firmware and loaded all my podcasts and music on and its been great since.
    Today i dropped it. straight vertical fall onto the headphone jack.
    in doing so, it appears that the screen has disconnected itself but in a way that it is still active because the screen shows bright white. I just restored it back to default and the Peso is working so im sure it is just the screen. the only other damage is to the headphone jack which is dented but still usable.
    I live in the UK and i am unsure whether this possibly minor problem that i have diagnosed myself is actually in requirement of Apples full repair price and im unsure how to go about returning the product.
    Can anyone help?

    Apple will fix and probably has flat-rate costs depending on how much damage they find.
    No, they won't. If Apple find the iPod has been accidentally damaged, they'll simply return it and might even charge a diagnostic fee.
    This is a quote from the repair terms and conditions.
    +"Apple reserves the right to refuse service on iPods that are outside their warranty if damage has occurred due to accident, abuse, misuse or unauthorized modifications. In such event, Apple will return your original iPod to you without providing service, and may hold you responsible for diagnostic fees."+

  • Problem with my nokia 3110 classic

    Hi,
    in about a month before I tried to apply a theme and it displayed a message Unable to open theme. theme corrupted. What should I do? I'm afraid to do anything so that i don't make it worse. The only thing I tried is to upgrade my software, but it had no effect. Help me please!

    are you referring to the phone's built-in themes? if so, then try resetting to factory settings by selecting the option in the menu of the phone. if it is a third-party theme, will then it may very well be corrupted (due to incomplete download off the internet, problems with the theme creation etc)

  • MaxDB upgrade/heterogeneus system copy problem with unicode conversion

    Project goal:
    upgrade a Content Server Version 7.3.0.35   32bit Non Unicode to
    version 7.6.06.16   64bit Unicode
    I found and followed note 962019
    My plan (following the note): 
    -create a clone of the original Content Server (vmware clone)
    -as per note 962019 patched server 7.3.0.35 to 7.3.0.62 (> 7.3.0.57)
    -created index
    -on a fresh installed windows 2003 server 64bit i installed Content Server with build 7.6.06.16
    -using loadercli from the target server (7.6.06.16) exported data
    Now i was ready to start the import, as the note states:
    "if the database parameter _UNICODE is set to the value NO and you want to start the target system with SAP MaxDB Version 7.6, you can use procedure described here for the import into a target system only with SAP MaxDB Version 7.6.05 build 11 or higher"
    Having version 7.6.06.16 i was confident on such procedure, but my import stops immediatly with error:
    D:\exportKpro>loadercli -d PRD -u SAPR3,SAP -b import.sql
    Loader protocol: 'C:\Documents and Settings\administrator\My Documents
    \sdb\loader\log\loader.log'
    Loader packages: 'C:\Documents and Settings\administrator\My Documents
    \sdb\loader\packages'
    Error connecting user SAPR3 to database PRD on local host: -25005
    User (SAPR3) logon to database PRD failed: SQL error -8046 = Conversion from UNI
    CODE impossible: 7600 (error position: 1)
    And now i'm stuck with no hints on how to proceed.
    Thanks in advance.
    Regards
    Simone Zaffalon

    Hello Simone,
    as you're staying on Windows platform, there is no need for a heterogenous system copy.
    All you've to do is to upgrade the 32-Bit installation to your target release (why not use MaxDB 7.7 right away?).
    Once this is done, you can check whether the database catalog is still non-unicode (_UNICODE=FALSE).
    If it is, there is a catalog migration procedure you can use to change this.
    If the 32-Bit database is as you want it, take a full data backup.
    Then uninstall the 32-Bit software, install the same version of MaxDB in the 64-Bit fashion.
    Finally create the db instance by a restore of the backup.
    After a load_systab your database is fully ready to go!
    Just to stress this again: the _UNICODE parameter is not about your data!.
    It's about the database catalog.
    Having this parameter set to YES you can create e.g. tables named with Unicode characters.
    The parameter does in no way affect your business data!
    Since many customers ask why they should't use loadercli for a scenario like this:
    a) It's only supported if you must use it, that is, you change the byte-order of the OS platform
    b) it's way faster than export and import. We're talking about a few hours compared to days here!
    c) It's much safer and controllable to use backup/restore and SDBUPD and move on step-by-step than exporting all data into a big file chunk and hoping that everything will be fine afterwards.
    regards,
    Lars

  • Problems with Unicode in extending JCo with JNI/librfc

    Hello,
    Problem:
    We are using JCo for communication with a SAP-System. We have an extension written in C using JNI for handling callbacks. Let's call it cb.dll.
    This extension is not unicode enabled. Now we have to connect to an unicode SAP-System. We do it with JCo, so the connection is in unicode mode. The result is, that our cb.dll does not work.
    If you want to enable the dll to handle unicode, the last step beside reengineering the C-code, is to link it against the librfc32u.dll.
    But then the communication in the cb.dll with SAP does not work, because the initial connection was made with JCo an JCo is using librfc32.dll. The cb.dll uses the RFC-handle from JCo.
    Question:
    How communicates JCo with a unicode SAP-System using librfc32 (non unicode) ?
    How can I use this method for our own dll ?
    thanks in advance

    The current settings are
    select * from nls_database_parameters
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET UTF8
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.1.0.3.0
    20 rows selected
    I use NVARCHAR2 as Datatype.
    My problem is as follows ...
    I use the oracle Table as external Data Table in Access. When I copy a russian text from an Access Table in the oracle Table I see only ??????. In the Access Table I see the correct russian text.

  • FONT problems with UNICODE - URGENT

    i'm trying to present text in different languages, like english, greek or cyrillic and so on. i want to work with the Arial Unicode MS font, that is installed on my system and which DOES appear in the getAvailableFonts() list!!!
    But when i try to display a greek text i see not all glyphs correctly. What have i to do??
    Have I still to set up my font.properties file and if so how can i manage this
    thanx a lot

    To me, it looks as if your problem is that you're only calling setFont on "this".
    That's only going to set it for the top level frame, and doesn't always do it for every individual component. The easy way to get around this is to go berserk with the setFont call. Set it on anything (heck, set it on your dog if it makes you feel any better)! ;D
    The slightly harder but smarter way to do this is to write a recursive function that drills down your component list.
    public void setFontRecursively(Font myFont, Component comp) {
       comp.setFont(myFont);
       if (comp instanceof Container) {
          Component[] childComps = ((Container)comp).getComponents();
          if (childComps != null) {
             for (int i=0; i < childComps.length; i++) {
                setFontRecursively(myFont, childComps);
    That should basically cover anything bar popup menus and drop-down submenus. You have to recall this as they appear, or they don't get the font straight off.
    Hope that helps!
    Martin Hughes

  • Urdu subtitles (problems with Unicode)

    I have a major problem where I have a number of subtitle documents in Word with the text in Urdu. I can save these documents as Unicode txt files and they seem to be okay. However, when I import into Encore the subtitles look different (they still look like some kind of Arabic text but different). I've gone round in circles over this and have run out of ideas!!

    In that case it may be worth to test
    Lemony Subtitler
    to prepare the bitmaps (and the script). The Lemony site says that it has
    "Full Unicode support. With support for vertical and right-to-left scripts, ligatures, etc."

  • Problems with Unicode webapplication

    Hi,
    I am developping a small webapplication which is supposed to support Unicode (different characters such as �S�\ etc.).
    I have a simple form which calls a JSP page.
    The JSP page prints the recieved parameter and prints it to the WEB browser.
    The JSP page also prints the parameter to a file.
    If I use:
         String textIn= request.getParameter("unicodeText");
         byte d[]=new byte[textIn.length()];
         textIn.getBytes(0, textIn.length(), d, 0);
         String unicodeText = (new String(d,"UTF-8"));Everything works fine but if I use:
         byte[] bytes = request.getParameter("unicodeText").getBytes();
         String unicodeText= new String(bytes, "UTF-8");OR:
         byte[] bytes = request.getParameter("unicodeText").getBytes("UTF-8");
         String unicodeText= new String(bytes, "UTF-8");OR:
         byte[] bytes = request.getParameter("unicodeText").getBytes("UTF-8");
         String unicodeText= new String(bytes);The parameter retrieved by the JSP page contains strange characters (such as a box followed by a questionmark) when I submit for example '�\' and '�S'.
    The problem is that the method:
    getBytes(0, textIn.length(), d, 0);used in the working example is Deprecated. In the API documentation I am told that the getBytes()
    Deprecated. This method does not properly convert characters into bytes. As of JDK 1.1, the preferred way to do this is via the the getBytes() method, which uses the platform's default charset.
    I really do not know why I can not get it to work!
    /Fredrik

    Ha again,
    I installed resin and started it with the default
    configuration and changed my jsp file as follows:
    byte[] bytes =
    request.getParameter("unicodeText").getBytes("UTF-8");
    String unicodeText= new String(bytes, "UTF-8");
    What you are doing is unnecessary (but should still work). Instead, simply write:
    String unicodeText = request.getParameter("unicodeText");as the unicode string has already been decoded by the jsp container.
    and this gives the wanted result (i.e. it works).
    I have tried around 20 chineese characters and �
    � and �.
    There is only one small thing... all combinations of
    � � and � works except
    ��� in this order.Really? I have tried the same character sequence (with your above code, and with my simplified version) and both work. Here is my test page:
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page session="false" %>
    <html>
    <head>
      <title>Test encodings</title>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
    </head>
    <br />
    <br />
    Request parameters:<br />
    <%
       java.util.Map params = request.getParameterMap();
       for (java.util.Iterator i = params.keySet().iterator(); i.hasNext(); ) {
         String param = (String) i.next();
         String[] values = request.getParameterValues(param);
         out.write("<b>" + param + "=[</b>");
         for (int j = 0; j < values.length; j++) {
           if (j > 0) {
             out.write("<b>,</b>");
           out.write(values[j]);
         out.write("<b>]</b> ");
    %>
    <body bgcolor="#ffffff" text="#000000"
      link="#006699" vlink="#006699" alink="#006699" leftmargin="0" topmargin="0"
      marginheight="0" marginwidth="0">
      <table border="0" align="left">
       <tr><th colspan="2">Enter some values</th></tr>
       <form method="post"
        action="testenc2.jsp"
        <%-- enctype="multipart/form-data" --%>
        >
        <input type="hidden" name="hidden" value="hidden_val" />
        <tr>
         <td>name</td>
         <td>
          <input type="text" name="name" size="50" maxlength="100"/></td>
        </tr>
        <tr>
         <td>address</td>
         <td>
          <input type="text" name="address" size="15" maxlength="20"/>
         </td>
        </tr>
        <tr>
         <td colspan="2">
         <input type="submit" name="cmd" value="send" />
         <input type="submit" name="cmd" value="cancel" />
         </td>
        </tr>
       </form>
      </table>
    </body>
    </html>>
    Anyway, this is a minor problem.
    Now I have to figure out why it works with resin but
    nor with jakarta.tomcat....Doesn't tomcat have a mailing list? That's probably a good place to ask or search.

  • Problems with SmartDisk Firelite 80gb and Mac Mini

    I purchased a SmartDisk Firelite 80gb hard drive to use to dump documents/itunes library onto to free up room on my mini itself. Thing is I work in an MAC/XP enviroment and I would like to be able to go between the both with no problem. The thing is I don't want to use the FAT file system. I would like to use a more secure format. Thing is what is a format the both can read? .. and How can obtain this? I'm not sure if i can partition this particular drive, that is the problem.
    Please help !!!!
    -thank you .. brian

    Hi Brian,
    Welcome to Apple Discussions
    I believe only FAT32 (MSDOS) are the only Mac OS X and XP compatible volume format. Yes, you can partition your hard drive; you should look at Partitioning a hard disk. You may want to look at Mac OSX Hints: Create HFS+ and FAT32 partitions on one external drive.. Your hard drive should be in FAT32 already, so you shouldn't have to reformat it.
    Jon
    Mac Mini 1.42Ghz, iPod (All), Airport (Graphite & Express), G4 1.33Ghz iBook, G4 iMac 1Ghz, G3 500Mhz, iBook iMac 233Mhz, eMate, Power Mac 5400 LC, PowerBook 540c, Macintosh 128K, Apple //e, Apple //, and some more...  Mac OS X (10.4.5) Moto Razr, iLife '06, SmartDisk 160Gb, Apple BT Mouse, Sight..

  • Problems with brand new ipod classic

    I purchased a $245 classic for my son's birthday last week. He opened it, was excited, and went straight to the computer to begin using it. Unfortunately, it did NOT work. I can't really say the problems he was having because he was the one using it. I believe he said that it would not format, and that the computer did not recognize the device as an ipod. He then tried it on his girlfriend's computer and it did not work there either. We called Apple and the representative told us to return it to the store. The store told us that it had to go through Apple (per Apple's orders). We called the same guy back and he said to send it in and they would send us a new one. OK, fine. But now they are saying that it was "undetermined accidental damage" and they will not repair or replace it. The ipod did not work from the moment it was opened!!! I find it quite unfair that we now have a brand new completely unscratched $245 paperweight, and no gift for our son. The website does not give me help with addressing this issue. Does anyone out there have any ideas on who to contact next? The guy we talked to in customer service lied to us twice (first by telling us the store would return it, and second by saying they were just going to ship a new one since he had just opened it). We don't really want to bother with him anymore. Our frustration is unreal. Thanks for any insight you might have.

    I can't speak for Apple, and I don't think we could speak to what your son did with the iPod (as opposed to following the setup instructions which I believe are in the box, and direct you to www.apple.com/ipod/start to install iTunes), as when I turned my Ipod Classic 160GB on, it simply booted up and started working. No "formatting" was required.
    If you have an issue where a vendor promises you a return, then reneges ... turn all your information over to your credit card issuer or bank and ask them to initate a chargeback. That will get the seller's attention.
    That's my $0.02.

  • Problem with Unicode and Oracle NCLOB fields

    When I try to INSERT a new (N)CLOB into an Oracle database, all is fine until I use a non-ASCII character, such as an accented roman letter, like the "�" (that's '\u00E9') in "caf�" or the Euro Currency symbol "?" (that's '\u20AC' as a Java character literal, just in case the display is corrupted here too). This doesn't happen with "setString", but does happen when streaming characters to the CLOB; however, as Oracle or the driver refuse strings larger than 4000 characters, and as I need to support all the above symbols (and many more), I'm stuck.
    Here's the background to the problem (I've tried to be detailed, after a lot of looking around on the web, I've seen lots of people with similar problems, but no solutions: I've seen and been able to stream ASCII clobs, or add small NCHAR strings, but not stream NCLOBs...).
    I'm using Oracle 9.2.0.1.0 with the "thin" JDBC driver, on a Windows box (XP Pro). My database instance is set up with AL32UTF8 as the database encoding, and UTF8 as the national character set.. I've created a simple user/schema, called LOBTEST, in which I created two tables (see below).
    The basic problems are :
    - with Oracle and JDBC, you can't set the value of a CLOB or NCLOB with PreparedStatement's setString or setCharacterStream methods (as it throws an exception when you send more than 4000 characters)
    - with Oracle, you can only have one LONG VARCHAR-type field per table (according to their documentation) and you MUST read all columns in a set order (amongst other limitations).
    - with a SQL INSERT command, there's no way to set the value of a parameter that's a CLOB (implementations of the CLOB interface can only be obtained by performing a SELECT.... but obviously, when I'm inserting, the record doesn't exist yet...). Workarounds include (possibly) JDBC 4 (doesn't exist yet...) or doing the following Oracle-specific stuff :
    INSERT INTO MyTable (theID,theCLOB) VALUES (1, empty_clob());
    SELECT * FROM MyTable WHERE theId = 1;
    ...and getting the empty CLOB back (via a ResultSet), and populating it. I have a very large application, that's deployed for many of our customers using SapDB and MySQL without a hitch, with "one-step" INSERTS; I can't feasibly change the application into "three-step INSERT-SELECT-UPDATE" just for Oracle, and I shouldn't need to!!!
    The final workaround is to use Oracle-specific classes, described in:
    http://download-east.oracle.com/otn_hosted_doc/jdeveloper/904preview/jdbc-javadoc/index.html
    ...such as CLOB (see my example). This works fine until I add some non-ASCII characters, at which point, irrespective of whether the CLOB data is 2 characters or 2 million characters, it throws the same exception:
    java.io.IOException: Il n'y a plus de donn?es ? lire dans le socket
         at oracle.jdbc.dbaccess.DBError.SQLToIOException(DBError.java:716)
         at oracle.jdbc.driver.OracleClobWriter.flushBuffer(OracleClobWriter.java:270)
         at oracle.jdbc.driver.OracleClobWriter.flush(OracleClobWriter.java:204)
         at scratchpad.InsertOracleClobExample.main(InsertOracleClobExample.java:61)...where the error message in English is "No more data to read from socket". I need the Oracle-specific "setFormOfUse" method to force it to correctly use the encoding of the NCLOB field, without it, even plain ASCII data is rejected with an exception indicating that the character set is inappropriate. With a plain CLOB, I don't need it, but the plain CLOB refuses my non-ASCII data anyway.
    So, many many thanks in advance for any advice. The remainder of my post includes my code example and a simple SQL script to create the table(s). You can mess around with the source code to test various combinations.
    Thanks,
    Chris B.
    CREATE TABLE NCLOBTEST (
         ID         INTEGER NOT NULL,
         SOMESTRING NCLOB,
         PRIMARY KEY (ID)
    CREATE TABLE CLOBTEST (
         ID         INTEGER NOT NULL,
         SOMESTRING CLOB,
         PRIMARY KEY (ID)
    package scratchpad;
    import java.io.Writer;
    import java.sql.Connection;
    import java.sql.Driver;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import java.util.Properties;
    import oracle.jdbc.driver.OracleDriver;
    import oracle.jdbc.driver.OraclePreparedStatement;
    import oracle.sql.CLOB;
    public class InsertOracleClobExample
         public static void main(String[] args)
              Properties jdbcProperties = new Properties();
              jdbcProperties.setProperty( "user", "LOBTEST" );
              jdbcProperties.setProperty( "password", "LOBTEST" );
    //          jdbcProperties.setProperty("oracle.jdbc.defaultNChar","true");
              Driver jdbcDriver = new OracleDriver();
              PreparedStatement pstmt = null;
              Connection connection = null;
              String tableName = "NCLOBTEST";
              CLOB clob = null;
              try
                   connection = jdbcDriver.connect("jdbc:oracle:thin:@terre:1521:orcl", jdbcProperties);
                   pstmt = connection.prepareStatement("DELETE FROM NCLOBTEST");
                   pstmt.executeUpdate();
                   pstmt.close();
                   pstmt = connection.prepareStatement(
                        "INSERT INTO "+tableName+" (ID,SOMESTRING) VALUES (?,?);"
                   clob = CLOB.createTemporary(pstmt.getConnection(), true, CLOB.DURATION_SESSION);
                   clob.open(CLOB.MODE_READWRITE);
                   Writer clobWriter = clob.getCharacterOutputStream();
                   clobWriter.write("Caf? 4,90? TTC");
                   clobWriter.flush();
                   clobWriter.close();
                   clob.close();
                   OraclePreparedStatement opstmt = (OraclePreparedStatement)pstmt;
                   opstmt.setInt(1,1);
                   opstmt.setFormOfUse(2, OraclePreparedStatement.FORM_NCHAR);
                   opstmt.setCLOB(2, clob);
                   System.err.println("Rows affected: "+opstmt.executeUpdate());
              catch (Exception sqlex)
                   sqlex.printStackTrace();
                   try     {
                        clob.freeTemporary();
                   } catch (SQLException e) {
                        System.err.println("Cannot free temporary CLOB: "+e.getMessage());
              try { pstmt.close(); } catch(SQLException sqlex) {}
              try { connection.close(); } catch(SQLException sqlex) {}
    }

    The solution to this is to use a third-party driver. Oranxo works really well.
    - Chris

  • Text Problem with a Nokia 3109 Classic

    Work have recently updated my phone to a Nokia 3109 Classic.
    The problem I have which i am finding very annoying is when I send a text message from this phone it stays at the composed message and does not return back to the main messaging screen.
    Is there any update that will fix this??
    Thanks in advance
    Message Edited by baboboy on 13-Aug-2008 08:17 AM

    That's how Nokias are.....I agree, it's bizarre. I suppose they think you might want to send the same message to somebody else! But often I forget whether I've sent it at all.
    Chris
    6230i (the last bug-free Nokia?)
    Vodafone UK contract since 1992

Maybe you are looking for

  • What happened to "Mark Podcast as unplayed" in iTunes 11?

    What happened to "Mark Podcast as unplayed" in iTunes 11? When i download a podcast, i don't necessarily want to listen to it immediately on my MacBook -- I want to listen to it later on my iPhone.  But sometimes iTunes starts playing it.  Even if I

  • How to connect to a EAP-MSCHAP network?

    I'm having trouble connecting to my schools network under Arch Linux using netcfg.  Wired internet works well, but I'm unable to connect by wireless as I would under Windows or Ubuntu (using network-manager, which supports MS-CHAP).  The easy solutio

  • Buttons have ceased to respond on Adobe Presenter 9

    Having previously worked fine one of my colleagues is experiencing an issue with Presenter 9. He is using PowerPoint 2010. The buttons are showing on the ribbon but when selected nothing happens. For example he will click on the manage button on the

  • Lost calender and contacts in Outlook

    I followed the instructions to the letter to migrate to BTmail from Bt Yahoo mail and although my inbox and sent emails in Outlook eventually re-appeared my Outlook contacts and calender have vanished. I work for myself and had 3 months worth of futu

  • ISynk doesn't transfer my phone calendar items

    Had some kind of breakdown in iCal. That is fixed. Now when I'm synking my calendar, the phone says that it sends items, iSynk says that it has received items, but no items gets visible in iCal. The other way around - from Mac to phone is no problem.