Cyryllic chars in KDS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cyryllic chars in KDS

553 Views
piotrdzierzak
Contributor II

I have problem with cyryllic chars in KDS.

I use Kinetis KL46 (ARM Cortex M0+) and defalult GNU C Compiler.

 

I declare chars like below. There is problem only with cyryllic chars.......

 

My declaration and initiations:

static const char RUFont1[]= "1234567890-=";
static const char RUFont2[]= "йцукенгшщзхъ";
static const char RUFont3[]= "фывапролджэ";
static const char RUFont4[]= "ячсмитьбю";
static const char RUFont5[]= "ЙЦУКЕНГШЩЗХЪ";
static const char RUFont6[]= "ФЫВАПРОЛДЖЭ";
static const char RUFont7[]= "ЯЧСМИТЬБЮ";

 

What I have to do in KDS to have a values in arrays of chars like in the ASCII table below?

For example I want to have:

Б = 193

Щ = 217

Ф = 212 etc....

 

while I have from compilator different values, for examples:

Б = 208 etc.

 

I tried to change codeparge in KDS like

Window > Preferences > General > Workspace, set "Text file encoding" to "Other : UTF-8

but withaut good effect...

Could anyone know what I have to change, set..?

 

162474_162474.pngwindows codepage 1251.png

 

 

I will be very grateful for help

 

Piotr

Labels (1)
0 Kudos
2 Replies

398 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

As I know KDS itself doesn't support Russian .

but user can go to ( http://www.eclipse.org/ ) to find the additional language packs in Eclipse. only the strings localized (by the community) to Russian is supported.

 


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

398 Views
piotrdzierzak
Contributor II

I show the arrays from debuger:

The most frequently code chars is 0xDO(h)...

Like you see the number 12345.. are ok while the cyrillic chars not...

RUchars.png

0 Kudos