HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

WTS Encoding troubles

02-16-2005, 09:22 PM#1
Vexorian
WTS file uses UTF8 encoding, right?

I was using UTF8Decode when reading stuff from it and UTF8Encode when writing, the thing is that there are 3 bytes at the start of every wts file that become a ? sign when you decode them for no reason, would like to know what the hell are those bytes.
02-17-2005, 06:47 AM#2
Soar
That are 3 bytes: EF BB BF
They are unicode signals, you can ignore them on reading and remove/retain them on writing, ;)
02-17-2005, 03:01 PM#3
Vexorian
Quote:
Originally Posted by Soar
That are 3 bytes: EF BB BF
They are unicode signals, you can ignore them on reading and remove/retain them on writing, ;)
I was expecting that, but I still wonder why UTF8Decode converts them into a ? instead of '', but I will just handle those bytes