First of all: I don't know too much about unicode .
Anyway I realized that unicode strings normally begin with $FFFE. But now I have one that has $FF00FE at the beginning and I don't understand what this means.
Any ideas?
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
$FFFE is at the start of some unicode files. It means the file uses UCS2 encoding (the same as PB uses for unicode strings).
$FF00FE is something different entirely. It probably isn't a unicode file, or it's a unicode file without a byte order mark. Or you simply read the value wrong, and it's really $FF FE 00 00 or $00 00 FE FF, which means UTF-32.
Trond wrote:Unicode strings don't have any special beginning.
$FFFE is at the start of some unicode files. It means the file uses UCS2 encoding (the same as PB uses for unicode strings).
$FF00FE is something different entirely. It probably isn't a unicode file, or it's a unicode file without a byte order mark. Or you simply read the value wrong, and it's really $FF FE 00 00 or $00 00 FE FF, which means UTF-32.
To be more precise: The string I'm reading is a ID3-Tag. The tag has a unicode flag so the whole string must be in unicode as far as I know.
So normally the unicode tags I found began with $FFFE but now I found a mp3 file where every tag has $FF00FE at the beginning.
I really don't know what this means.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Trond wrote:Unicode strings don't have any special beginning.
$FFFE is at the start of some unicode files. It means the file uses UCS2 encoding (the same as PB uses for unicode strings).
$FF00FE is something different entirely. It probably isn't a unicode file, or it's a unicode file without a byte order mark. Or you simply read the value wrong, and it's really $FF FE 00 00 or $00 00 FE FF, which means UTF-32.
To be more precise: The string I'm reading is a ID3-Tag. The tag has a unicode flag so the whole string must be in unicode as far as I know.
So normally the unicode tags I found began with $FFFE but now I found a mp3 file where every tag has $FF00FE at the beginning.
I really don't know what this means.
Well ID3 is messed up by a lot of editors (including windows media player - it doesn't safe the tagsize of APIC as syncsafe integer). Maybe its not your fault, but the fault of the editor you have used for the file.