×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    10

    Unicode resource files

    Does CodeWarrior support unicode resource files? - or do I have to enter all my unicode characters in <0xXXXX> format?

  2. #2
    Nokia Developer Expert
    Join Date
    Dec 2004
    Location
    Austin, TX
    Posts
    399
    Do you mean the Symbian resource compiler? I don't know why you would be using the MW resource compiler. Can you be more specific about what kind of resource you are taking about and what you are trying to do?

    Cheers,
    Tim

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    10
    Well, I assume that CW invokes the Symbian resource compiler (?).

    Specifically can I write my .rss files in unicode so that I can have non-latin resource strings (I'm trying to produce an arabic version of my program).

    I am aware that you can insert unicode characters using the <0xXXXX> notation, but given the large number of long strings, I don't want to have to spell everything out character by character this way.

  4. #4
    Nokia Developer Expert
    Join Date
    Dec 2004
    Location
    Austin, TX
    Posts
    399
    I haven't seen a way to do this in .rss files except as you are describing. This should be posted in the general Symbian C++ section as this isn't really a CodeWarrior issue.

  5. #5
    Registered User
    Join Date
    May 2004
    Posts
    10
    OK, after reading a helpful article on the newlc site about this I can answer my own question :).

    Overview: CodeWarrior does not support unicode - you have to use an external editor . The symbian resource compiler does, in the form of UTF-8.

    Basically, the Symbain resource compilier will accept files in UTF-8, however rather than the (windows standard?) way of flaging the file as UTF-8 (several 'magic bytes' at the start of the file - codepage id I guess) you have to include the plain text line 'CHARACTER_SET UTF-8' at the start. If you use something like Windows wordpad to load a unicode file and save it as UTF-8 then you will need to use a hex editor to remove those bytes from the start - and will no longer be able to use wordpad to change the file without reinserting them. Codewarrior can be used to edit the modified UTF-8 file, but you will get garbage for all the non-latin characters.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •