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?
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.
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.