Posted: Sun Dec 09, 2018 6:18 pm Post subject: Cyrillic or Russian character
Hi,
Please help about using cyrillic or Russian character in Bascom IDE.
On Windows 7 64 bit. professional, I don't have problem to write in notepad cyrrilic characters,
but in bascom instead of corresponding character it is question mark ? .
After all attempts to change fonts... in Options/enviroments/fonts, type of scripts, also
I tried to copy from notepad or from character map app. NO solution.
Reason what I need this characters is because my LCD on some device must have menu with
Russian words... (and I have lcd with CYR. support).
Posted: Sun Dec 09, 2018 9:58 pm Post subject: Re: Cyrillic or Russian character
dabatek wrote:
On Windows 7 64 bit. professional, I don't have problem to write in notepad cyrrilic characters,
Notepad works because there it doesn't matter that a Cyrillic letter is specified as a two bytes Unicode.
In Bascom however and in your case of Cyrillic strings, each character must be built from not more than one byte.
If you look up the character table of your LCD, you'll find that the position of a character is pointed out by exactly one byte.
Quote:
Reason what I need this characters is because my LCD on some device must have menu with
Russian words... (and I have lcd with CYR. support).
If I remember correctly, you can build a string like that:
Code:
myString ="{064}{070}{055}"
Each of the numbers corresponds with a character in the LCD's font table, thus you need to transform the characters of the Cyrillic string with the help of the LCD font table into a series of curly braced numbers.
If you do it manually by search and copy/paste, or by writing a small program in the language of your choice, depends only on how large your menu is, and if you are faster by manual editing or by writing a program.
Yes I find in data sheet this table (character pattern).
Now I have a bit boring job or maybee in ms excell I can auto generate words (make some macro).
Then copy to bascom (because lcd menu from my app. have about 40 words on cyrrilic.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum