EMERGENCY! Unicode question on export file

brian at revolution911.com brian at revolution911.com
Tue Apr 16 13:01:50 EDT 2013


Sorry, forgot to send what I'm currently trying.

Do iFileOps.$createfile(%%filelocation)
Do iFileOps.$openfile(%%filelocation) Returns %%status
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
brian at revolution911.com
Sent: Tuesday, April 16, 2013 9:59 AM
To: 'OmnisDev List - English'
Subject: RE: EMERGENCY! Unicode question on export file

Nothing still working so far.

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

Hi Brian,

If you need to export in either Mac Roman or Windows Extended ANSI character
sets as you would have done in Studio 4.3, you need to use the function
uniconf() in Catalog->Functions->Unicode.

This function allows you to convert Omnis unicode text to various character
encodings including the type kUniTypeNativeCharacters, which may be what you
are after. All the type constants are listed in Catalog->Constants->Unicode.

Regards,
Michael

Michael Monschau (Director)
Brainy Data Limited

Reply To: michael at brainydata.co.uk
Phone: +44 (0)870 474 0708
Web: www.brainydata.co.uk the home of Omnis Components and Developer
Services






On 16 Apr 2013, at 17:23, <brian at revolution911.com>
<brian at revolution911.com> wrote:

> 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].iExportF
> ield) 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
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com

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

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




More information about the omnisdev-en mailing list