DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: UTF8 and BLOB

  1. #1
    Join Date
    Jan 2001
    Location
    St. Louis. MO
    Posts
    151

    Unhappy

    I converted one of our development database character set from US7ASCII to UTF8(Unicode). When the programmer tried retrieving data from a BLOB column using a Java program, he cannot retrieve the data. There was no Oracle error but the application returns message that says it cannot open the files.

    Is there a known error on oracle BLOB and LONG column datatype when using UTF8 Character set?

  2. #2
    Join Date
    Mar 2001
    Location
    Ireland/Dublin
    Posts
    688
    Which version Oracle do you use?

  3. #3
    Join Date
    Jan 2001
    Location
    St. Louis. MO
    Posts
    151
    I'm using Oracle 8.1.7 on HP UX

  4. #4
    Join Date
    Mar 2001
    Location
    Ireland/Dublin
    Posts
    688
    O'k, if your database worked befor with US7ASCII without problem with BLOB, the reason in WRONG CONTERTION from US7ASCII to UTF8, I had similar problem with convertion - all national symbolses were converted to '¿'. We had 8.1.5. But it seems to me that bug was not fixed.
    Go to this thread:

    http://www.dbasupport.com/forums/sho...threadid=11009

    And play with convertion.
    Best wishes.

  5. #5
    Join Date
    Mar 2001
    Location
    Ireland/Dublin
    Posts
    688
    Little program I used for hacking export file.

    #include
    #include
    main()
    {
    FILE *in_file;
    char s=''; --<--- chr(31)
    int x;
    if((in_file = fopen("exp.dmp","r+w")) == NULL)
    {printf("\n Error of opening file 'exp.dmp'\n\n");
    exit(1);}
    fseek(in_file,'☺',0); --<--- chr(1)
    fgetc(in_file);
    if ( fwrite (&s, 1, 1, in_file) != 1 ) printf("Error of writing.\n" );
    fclose(in_file);
    printf("\n Done !!!\n\n");
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width