Unix Technical Forum

convert contents of clob to a different charset

This is a discussion on convert contents of clob to a different charset within the Oracle Database forums, part of the Database Server Software category; --> Hello, I would like to convert the contents of a clob to a differenct character set. The source is ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2008, 07:38 AM
prunoki
 
Posts: n/a
Default convert contents of clob to a different charset

Hello,

I would like to convert the contents of a clob to a differenct
character set. The source is encoded using ISO8859P2 and the target
would be UTF8.

I tried to put together something in Java but I get lost.

My purpose is to send the contents of the clob to another application
which needs UTF8 encoded data.

Any ideas?

HK

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-25-2008, 07:38 AM
Andy Hassall
 
Posts: n/a
Default Re: convert contents of clob to a different charset

On 28 Aug 2006 04:55:47 -0700, "prunoki" <hegyvari@ardents.hu> wrote:

>I would like to convert the contents of a clob to a differenct
>character set. The source is encoded using ISO8859P2 and the target
>would be UTF8.
>
>I tried to put together something in Java but I get lost.
>
>My purpose is to send the contents of the clob to another application
>which needs UTF8 encoded data.


The easiest way is to set the NLS_LANG environment variable to .UTF8 (but see
[1] below) before connecting; this ensures that _all_ character data is
converted to UTF8 as it reaches the client.

This may be too broad a change if you only want a specific CLOB field
converted, though, but would be ideal if the client application expects UTF8
throughout.

[1] You may actually want .AL32UTF8, if you're fussy about the finer points of
UTF8 - see manual for more details - but in practice this won't matter if
you're coming from an ISO-8859 variant.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com