EMERGENCY! Unicode question on export file

brian at revolution911.com brian at revolution911.com
Tue Apr 16 12:23:16 EDT 2013


Not working with.  
Tried


Do iFileOps.$createfile(%%filelocation)
Do iFileOps.$openfile(%%filelocation) Returns %%status
Calculate lList2.$line as 1
Repeat
Do
iFileOps.$writecharacter(kUniTypeBinary,lList2.[lList2.$line].iExportField)
Do iFileOps.$writefile(chartoutf8(lList2.[lList2.$line].iExportField))
Calculate lList2.$line as lList2.$line+1
Until lList2.$line>lList2.$linecount
Do iFileOps.$closefile

And this

Do iFileOps.$createfile(%%filelocation)
Do iFileOps.$openfile(%%filelocation) Returns %%status
Do iFileOps.$writecharacter(kUniTypeBinary,lList2)
Do iFileOps.$writefile(chartoutf8(lList2))
Do iFileOps.$closefile

-----Original Message-----
From: omnisdev-en-bounces at lists.omnis-dev.com
[mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of Debra Peters
Sent: Tuesday, April 16, 2013 8:47 AM
To: OmnisDev List - English
Subject: Re: EMERGENCY! Unicode question on export file

We use FileOps.$writefile. We had to add the use of chartoutf8('string') in
the $writefile when we converted to Studio 5.

So what had been
FileOpsInstanceVar$writefile(varContainingString)
became
FileOpsInstanceVar.$writefile(chartoutf8(varContainingString))

Deb

On 4/16/2013 10:39 AM, brian at revolution911.com wrote:
> We use studio 4.3 and recently upgraded to Studio 5.2 unicode version.  
> We have been creating a .txt file with v4.3 with strict character 
> placement and working great.  When we switched to Unicode v5.2 the 
> file comes out with three extra digits in front of each line exported.
>
>   
>
> Is there something im suppose to be doing to correct this with out the 
> extra digits.
>
>   
>
> Here is the first three preceding charatcers  and then each line 
> has these three “ ..” which is 20 0D 0A
>
>   
>
> Any help would be great.
>
> Thanks,
>
> Brian
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
>

-- 

“Live a good and honorable life, then when you get older and think back,
you’ll enjoy it a second time.”

_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list