PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

unicode editor

I'm looking for a unicode editor for the pocketpc, anyone know of any, maybe open source?

I did a routine search but didn't come up with anything. So hopefully word of mouth can come up with something. I also didn't see any normal editors either, but if you know of a good open source one, I could attempt to add in the unicode part myself.
angedelamort · 17 Jan 2003, 20:30 UTC
what do you want to edit? HTML, code? Generate binaries?
I don't think there are ANY editors for any type of file that support Unicode for the PPC.
What do you mean by a unicode editor? Pocket Word can edit unicode text files fine. I just verified it to be sure.

Dan East
I tried Word, didn't work for me with a UCS-2 file. I'm using .txt as the extension so maybe that confuses Word.

I'm message around with Simkin for a project in development. And I envisioned sitting on my couch coding up some scripts for the game, instead of what I'm doing now, saving them on the PC then transferring them.

I'm mostly ignorant regarding Unicode, but since I know TCHAR is a 2 byte value I assumed UCS-2 is the best fit. There are 3 other types the app I'm using can save, maybe Word understands UTF-16, I'll give that a try.
PocketPCs only support Unicode according to the MSDN. Any PocketPC text editor should save to unicode. If not the generic MFC generated app would suffice for a text editor.
Tried UTF-16 and it doesn't work either. If Word understands unicode, its only in its own non-standard way.
Total Commander has a text editor that provides save as unicode.
http://www.ghisler.com/ce.htm
Perhaps the endian-ess is backwards. If you want to send a sample text file to me I can take a look at it.

info@dexplor.com

Dan East
Isn't big-endian typically used in mainframes? I would think PC, PocketPC are both little-endian.

I always open my egg from the little end. :wink:

Sm!rk
Try posting your question here.
http://www.simkin.co.uk/main.html
You're talking about the endian-ess of the processor. The format of the text encoding is of course completely independant of that. If you are using Windows 2000 (or perhaps Windows XP as well), fire up NotePad and hit Save As. You will see an Encoding option at the bottom where you can specify Unicode and whether or not to use big or little endian.

Dan East
Now thats suprising, the files *do* open fine in notepad on XP. But I'm more surprised that notepad had been updated. 8O

I saved one out with notepad and then checked with the editor I was using to see what it had changed. The Byte order for Unicode as saved by Notepad is low-high, same as the intel procs. It saves as UCS-2, and the only difference, and what may have been causing the problem, is the byte order mark at the beginning of the file. The first editor gave me the option of putting that in, but I hadn't, notepad does it by default (with no option not to) and that seemed to be what Word was expecting. In other words the only thing different was that mark, and it made the difference.

Thanks for the Notepad tip Dan.
Well thru all of that I am still back at square one, Word can load the unicode files as mentioned, but any changes will cause it to write it back in UTF-8 which is basically normal text, hence no longer readable by my app.

I can't even wager a guess as to why Word would destroy the filetype, but if anyone else knows of any secrets to prevent this it would solve my problem.
Doesn't the endian-ess of the processor determine the byte order when reading and writing data?
No. You can do whatever you want with your data. Now if you read directly into a integer, like an int, then you may have to convert to big or little endian if the data is not in the format required by the processor you are targeting. For example, Quake does this so it can run on big or little endian processors.

Dan East