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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Unicode <=> ANSI
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

worigin

Germany
Posts

Posted - 11/16/2006 :  04:49:32 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

easwar

USA
1965 Posts

Posted - 11/16/2006 :  09:55:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

worigin

Germany
Posts

Posted - 11/17/2006 :  04:56:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
@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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000