Solved

UTF-8 Problem

Posted on 2004-10-13
3
472 Views
Last Modified: 2008-03-17
Hi,

    I  have a file stored in blob field, this file contains characters in utf-8 fotmat


    I'm triying to catch the end of line with

          dbms_lob.read(var_blob,ofsetlen,var_seek_point,lv_buffer);
          lv_line:=CONVERT(utl_raw.cast_to_varchar2(lv_buffer),'UTF8');

          var1:=instr(file_str,initial_pos,chr(13)||chr(10));


     this works for all lines, except when line contains "un normal" characters like ñ or anothers like this...

       when the lines contains unnormal character the value for    "var1"    is 1 , why ?

      Maybe  I'm not processing correclty the character stored in utf-8

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 13 10
xxxxxxxxxxxxxxxxxxÑxxxxxxxxxxxxxxxxxxx 13 10
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 13 10
xxxxxxxxxxxxxxxxxxxxxxxxÇxxxxxxxxxxxxx 13 10
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 13 10


line 1, 3 , 5 works fine, but line 2 and 4 don't


Regards
MARCELO





0
Comment
Question by:mosorio
3 Comments
 
LVL 22

Accepted Solution

by:
Helena Marková earned 500 total points
ID: 12317269
Maybe you will find some useful informations on this site:
http://asktom.oracle.com/pls/ask/f?p=4950:1:
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now