how to preserve character set encoding when creating a text file?

Josh Mellicker josh at dvcreators.net
Thu Oct 22 18:15:16 EDT 2009


Thanks Joe, we will peruse that, I wonder who wrote it? These lessons  
don't have "bylines".

When we figure out I will post the solution so nobody ever has to go  
through this hassle again.


On Oct 22, 2009, at 7:48 AM, Joe F. wrote:

> They've posted a good explanation of how to use unicode text here on  
> the Rev site:
>
> http://lessons.runrev.com/spaces/754/buckets/784/lessons/6930-How-Do-I-Use-UTF-8-Text-With-Fields-
>
>
> On Oct 21, 2009, at 7:59 PM, Josh Mellicker wrote:
>
>> Thanks Martin, but I'm not sure how to use this info.
>>
>> I wonder if anyone here knows how to save a text file in Unicode or  
>> some character encoding that preserves international character sets?
>>
>> Thanks
>>
>>
>> On Oct 21, 2009, at 9:11 AM, Martin Baxter wrote:
>>
>>> Perhaps this info is a clue?
>>>
>>> Windows or Unix character position 237 = iacute
>>>
>>> Mac character position 237 = Igrave
>>>
>>> Martin Baxter
>>>
>>> Josh Mellicker wrote:
>>>> In Czechoslovakia, the "Application Data" folder on Windows XP is  
>>>> called
>>>> "Data aplikací". So, when we get specialfolderpath("26"), the  
>>>> path looks
>>>> something like this:
>>>>
>>>> C:/Documents and Settings/Username/Data aplikací/OurFolder/
>>>>
>>>> In Rev, all works fine.
>>>>
>>>> But when we create a regular text batch file:
>>>>
>>>> put tBatchCommands into URL ("binfile:" & theBatchFileLoc())
>>>>
>>>> the Czech character is transformed into this:
>>>>
>>>>  C:/Documents and Settings/Username/Data aplikacÌ/OurFolder/
>>>>
>>>> and when running the batch file, the system cannot find the path.
>>>>
>>>> Obviously we are messing up the character encoding when we write  
>>>> the
>>>> text file and the (one character, in our case) is changed.
>>>>
>>>> Has anyone run into this or know how to preserve character  
>>>> encoding in
>>>> our text file?_______________________________________________
>>>> use-revolution mailing list
>>>> use-revolution at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>>
>>>
>>>
>>> -- 
>>> If you want to go fast, go alone; if you want to go far, go together
>>> (African proverb)
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your  
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list