The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Unicode <=> ANSI

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
worigin Posted - 11/16/2006 : 04:49:32 AM
Origin Version (Select Help-->About Origin): 7.5 Pro
Operating System: WXP

Dear all,
i try to import a data text file which is coded in big-endian unicode.
ASCII import doesn't work, the data is messed up. Therefore i have to write some originC code. But it seems to me that the string functions like fgets() can only work with ascii character set. Is this function implemented that it can handle wide char as well? And how i can invoke this feature? Are there other possibilities to read in unicoded text linewise?

Best regards

Markus

2   L A T E S T    R E P L I E S    (Newest First)
worigin Posted - 11/17/2006 : 04:56:25 AM
@easwar Thank you for the prompt awnser.

I solved the problem quick and dirty by reading in the whole file characterwise, discard every second character and write the rest into a temporary (now plain ascii) file for further processing. This a very unsatisfactory and inelegant solution, because it is very slow.

Best regards

Markus
easwar Posted - 11/16/2006 : 09:55:23 AM
Hi Markus,

OC does not directly support wide characters currently even though such functions are available in the OS. So some custom programming will need to be done to import such files.

Easwar
OriginLab


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000