Solved

UTF-8 Problem

Posted on 2004-10-13
3
477 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
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…

734 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