Need some piece of advice

Here you can discuss ReactOS related topics.

Moderator: Moderator Team

Post Reply
PetruDimitriu
Posts: 103
Joined: Thu Apr 23, 2009 9:45 am

Need some piece of advice

Post by PetruDimitriu »

This is the 1701st topic on this forum. Yet another topic about translation.

Can someone tell me which formatting should I use when I'm translating using Unicode characters? The compiler won't compile UTF-8 files and also I can't save the files as ANSI... I am desperate...

hto
Developer
Posts: 2193
Joined: Sun Oct 01, 2006 3:43 pm

Post by hto »

Use UTF-8. See this example. Notice #pragma code_page(65001) at the beginning and #pragma code_page(default) at the end. Either do not use Windows Notepad, as it likes to insert byte-order marks into files, or remove these characters after editing. There were some compilation problems with such files.

PetruDimitriu
Posts: 103
Joined: Thu Apr 23, 2009 9:45 am

Re: Need some piece of advice

Post by PetruDimitriu »

Then which text editor you would recommend me to use?

Lone_Rifle
Test Team
Posts: 802
Joined: Thu Apr 03, 2008 2:17 pm
Contact:

Re: Need some piece of advice

Post by Lone_Rifle »

Textpad and Notepad++ are nice.

Edit: yes, I meant Notepad++.
Last edited by Lone_Rifle on Tue Jul 07, 2009 5:58 pm, edited 1 time in total.

swight
Posts: 130
Joined: Thu Jan 10, 2008 10:31 pm

Re: Need some piece of advice

Post by swight »

Could you mean Notepad++ since Notepad was the one mentioned with the issue?(I don't know if notepad++ has the issue or not, but since I think they have an option to convert text between formats it seems likely not to have the issue)

PetruDimitriu
Posts: 103
Joined: Thu Apr 23, 2009 9:45 am

Re: Need some piece of advice

Post by PetruDimitriu »

hto, I add these pragma's in the file but Notepad still asks me to convert the file to another encoding.

hto
Developer
Posts: 2193
Joined: Sun Oct 01, 2006 3:43 pm

Post by hto »

[…] but Notepad still asks me to convert the file to another encoding.
I do not understand. You should save the file in UTF-8 encoding.

PetruDimitriu
Posts: 103
Joined: Thu Apr 23, 2009 9:45 am

Re: Need some piece of advice

Post by PetruDimitriu »

If I do, the compiler gives error.

User avatar
Black_Fox
Posts: 1584
Joined: Fri Feb 15, 2008 9:44 pm
Location: Czechia

Re: Need some piece of advice

Post by Black_Fox »

PSPad is also handy.

Haos
Test Team
Posts: 2954
Joined: Thu Mar 22, 2007 5:42 am
Contact:

Re: Need some piece of advice

Post by Haos »

I`d recomment a windows version of scite. Great code editor as well (intendation, syntax highlighting).

vicmarcal
Test Team
Posts: 2732
Joined: Mon Jul 07, 2008 12:35 pm

Re: Need some piece of advice

Post by vicmarcal »

Haos wrote:I`d recomment a windows version of scite. Great code editor as well (intendation, syntax highlighting).
Btw, Scite runs in ReactOS perfectly ;)

Radhad
Posts: 605
Joined: Wed Apr 12, 2006 5:09 pm
Contact:

Re: Need some piece of advice

Post by Radhad »

Haos wrote:I`d recomment a windows version of scite. Great code editor as well (intendation, syntax highlighting).
Scite is the base of Notepad++

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 3 guests