Hi Kavitha,

Hi,

I am a newbie, can anyone please tell me how to display the contents of file without any special characters. I tried and the result has lots of special characters that are not in the file. I am working on Mac, in windows it works fine.

welcome to the wonderful and exciting world of crossplatform software development :-D

As you already experienced, Windows uses a different text encoding than the mac does. So if you want to display a text file created on windows, you have to convert it to mac encoding
using the "isotomac" function like this:
...
put url("file:the_windows_text_file.txt") into win_text
put isotomac(win_text) into mac_text
put mac_text into fld "Field for Mac display"
...

Or in a hard to read one-liner:
...
put isotomac(url("file:the_windows_text_file.txt")) into fld "Field for Mac display"
...
;-)

Hope that helps.

Thank youKavitha

Regards from germany

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to