Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Oracle9i (9.2) and the ASCIISTR('...') Function

Oracle9i (9.2) and the ASCIISTR('...') Function

From: Martin T. <bilbothebagginsbab5_at_freenet.de>
Date: 3 Feb 2005 01:23:57 -0800
Message-ID: <1107422637.102133.241680@z14g2000cwz.googlegroups.com>


Hello!

Is it me, or is this function - ASCIISTR('string') actually completely useless?

The spec tells me:
[q]

ASCIISTR takes as its argument a string in any character set and returns an ASCII string in the database character set. The value returned contains only characters that appear in SQL, plus the forward slash (/). Non-ASCII characters are converted to their Unicode (UTF-16) binary code value.

Example:
SELECT ASCIISTR('ABÄCDE') FROM DUAL;



AB\00C4CDE
[/q]

... so far, so good - this would therefore be a good thing to extract Unicode characters, when my Client cannot get non-ASCII Unicode characters because of some implicit conversion problems with OO4O. But(!) if the string in the Database contains a Backslash, it IS NOT escaped ... so the String "\00c4" does look exactly the same a a string containing the Unicode Character 00c4.
I would call that seriously broken.

mfG, Martin Received on Thu Feb 03 2005 - 03:23:57 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US