Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

UTF-8 Problem

Posted on 2004-10-13
3
Medium Priority
?
484 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
1 Comment
 
LVL 22

Accepted Solution

by:
Helena Marková earned 2000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

What we learned in Webroot's webinar on multi-vector protection.
How much do you know about the future of data centers? If you're like 50% of organizations, then it's probably not enough. Read on to get up to speed on this emerging field.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

824 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