Sorry, there's no Spec, that's an "invention" from me

@CODE=UNICODE is simply added to tell the player that it's an unicode MIDI because normal player will stop reading a string as soon as a zero byte is found or tries to convert the zero to something else. In unicode case, you have to read it as it is without any conversion at all. That's the only reason for the flag.
Btw, I've never found any unicode KAR file on net. Even CalElect is not using unicode. So, there are options, to convert by the player or we convert it for all players. I decided for the 2nd solution.
Usually, MIDI files are created by many different equipments. For instance, the line break could be represented differently. So, KAR-players have to be smart to play all files. The @CODE=UNICODE flag is used to suppressed all those features.
HTH
Phuoc
moonreflection wrote
and realize that I can currently only play regular .kar file. I guess these file are in unicode and I suppose to search for @CODE=UNICODE and parse them? Where can I get a specs of it or can I get an idea by reading all the threads? I will have to update my project, but I thought I'll get some input before I go in the wrong direction.
Thanks,
Toan