This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

russian comms

Hi, my uKeil 4 does not eat russian comms. How can I fix this?

Parents
  • It's bad if the editor doesn't correctly support the full character set in comments.

    But maybe you should consider doing what a large part of all developers in this world is doing - write the comments in English. What if Linus Torvalds had written all his documentation and comments in Finnish? Wouldn't that have seriously affected the spread of Linux?

    And what if you mix your code with some code you download from the net - doesn't it look silly when you have different code blocks with comments in different languages?

Reply
  • It's bad if the editor doesn't correctly support the full character set in comments.

    But maybe you should consider doing what a large part of all developers in this world is doing - write the comments in English. What if Linus Torvalds had written all his documentation and comments in Finnish? Wouldn't that have seriously affected the spread of Linux?

    And what if you mix your code with some code you download from the net - doesn't it look silly when you have different code blocks with comments in different languages?

Children
  • But it's not just in the comments - russian letters are also required 'LCD_PrintString ("russian_text");
    And it does not work :(

  • But what character set is the display using?
    And what character set is the editor using?
    And is there really an issue with the compiler, or with the expectations about what character set that is active?

    The normal way to handle "any" character in a text file is to use some encoding variant of Unicode - most often UTF-8. But how many displays can actually use UTF-8?

    If I want to display swedish characters on a display, I normally have to specifically give the hexadecimal value of these characters because I just can't expect my editor to have a code mapping that is identical to the display.

  • Encoding win1251.
    Possible get round this problem in different ways.(Use UTF-8, use copy/paste from external editor, use copy/paste from 'Find..', hack UvEdit.dll) But earlier (UV3, and the first versions of UV4) all worked, but now does not work.

  • I write comments in russian and have none problems with it. The only problem is that uVision by default uses not win1251 codepage, so you'll have troubles reading it in external viewers. Also if you want to change uVision codepage to default cirillic 1251, you can find a solution by googling keywords "uvision" and "kodirovka".