Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: raychaser on August 12, 2007, 02:38:25 AM

Title: Special Characters (especially TAB)
Post by: raychaser on August 12, 2007, 02:38:25 AM
Hi,

I've had to put some further parameters into the strings.tab file and I have used tab delineation since it's already set up that way.

It works so far and when I pull the string:
NAME<tab>param1<tab>param2<tab>Text

from the file I get:
param1<tab>param2<tab>Text

so now all I need to do is split this string by the TAB key and VOILA!!

I'm using the javascript special characters myStr.Split("\t"); but that's not working.  Could it be that WME uses different special characters?

Also is there a place I could find a list of all the other special characters? Carriage returns etc?  I searched around in the help files and the forums but didn't find anything
Title: Re: Special Characters (especially TAB)
Post by: Mnemonic on August 12, 2007, 09:34:35 AM
WME uses the tilde (~) as an escape character. You can use ~n and ~" to include a new line or a quotation mark.
However, there's no escape character for TAB. You can use literal tab in a string though.