dbTalk Databases Forums  

Convert ascii file to utf-8 file

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Convert ascii file to utf-8 file in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
janis
 
Posts: n/a

Default Convert ascii file to utf-8 file - 08-06-2009 , 02:51 PM






If I want the results from a select statement written into a file i'll
use:

select * from employee
go
output to employee.csv format ASCII

but now I got the question to change the format into utf-8. how do I
do that ?

Reply With Quote
  #2  
Old   
janis
 
Posts: n/a

Default Re: Convert ascii file to utf-8 file - 08-06-2009 , 03:09 PM






Or instead of usingthe format ascii I have to use UTF-8

Reply With Quote
  #3  
Old   
Nick Elson [Sybase iAnywhere]
 
Posts: n/a

Default Re: Convert ascii file to utf-8 file - 08-06-2009 , 04:05 PM



You can use the ENCODING clause or set a temporary
option as in:


OUTPUT .... FROMAT ASCII ENCODING=UTF-8
or
SET TEMPORARY OPTION DEFAULT_ISQL_ENCODING = 'UTF-8'

[though there seems to be some confusion of whether or not that should be
'UTF8' without/with a hyphen]


"janis" <janimie (AT) gmail (DOT) com> wrote

> Or instead of usingthe format ascii I have to use UTF-8

Reply With Quote
  #4  
Old   
janis
 
Posts: n/a

Default Re: Convert ascii file to utf-8 file - 08-11-2009 , 10:24 AM



Hi Nick, Thx for the quick response !!

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.