Solved

UTF-8 Problem

Posted on 2004-10-13
3
467 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
Comment Utility
Maybe you will find some useful informations on this site:
http://asktom.oracle.com/pls/ask/f?p=4950:1:
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
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…

763 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

12 Experts available now in Live!

Get 1:1 Help Now