Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Non US characters compiller error (Read 3514 times)
EvgeniK45
Junior Member
**
Offline


Posts: 15
Location: Russian Federation
Joined: Jan 20th, 2013
Non US characters compiller error
May 11th, 2014 at 10:52am
Print Post  
Hello!

First, sorry for my eng. Sad
If i compiled this program:

Code
Select All
void setup()
{
	Serial.begin(115200);
}

void loop()
{
	String S = "Привет мир!"; // That means "Hello world!" on russian
	byte i = 0;

	while (S[i] != 0 ) {
		Serial.println(S[i++], HEX);
	}
}
 



Under Visual Micro, I've got next result:
Port open
FFFFFFEF
FFFFFFBF
FFFFFFBD
FFFFFFEF
FFFFFFBF
FFFFFFBD
FFFFFFEF
FFFFFFBF
FFFFFFBD
FFFFFFEF
FFFFFFBF
FFFFFFBD
FFFFFFEF
FFFFFFBF
FFFFFFBD
FFFFFFEF
FFFFFFBF
FFFFFFBD
20
FFFFFFEF
FFFFFFBF
FFFFFFBD
FFFFFFEF
FFFFFFBF
FFFFFFBD
FFFFFFEF
FFFFFFBF
FFFFFFBD
21

Under Arduino IDE, I've got:
FFFFFFD0
FFFFFF9F
FFFFFFD1
FFFFFF80
FFFFFFD0
FFFFFFB8
FFFFFFD0
FFFFFFB2
FFFFFFD0
FFFFFFB5
FFFFFFD1
FFFFFF82
20
FFFFFFD0
FFFFFFBC
FFFFFFD0
FFFFFFB8
FFFFFFD1
FFFFFF80
21

Why Visual Micro can't understand non US characters?  Cry
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Non US characters compiller error
Reply #1 - May 11th, 2014 at 4:03pm
Print Post  
Hi,

Thanks for the note. We will correct that in the next release.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Non US characters compiller error
Reply #2 - Jun 14th, 2014 at 10:19pm
Print Post  
Hi,

This has been tested and it works okay if you save your .ino file with encoding. "File>Save As with Encoding" (utf8) 

After you do this once it should work okay and remember the file encoding when saving normally.

If the files are not saved with encoding then atmel studio will convert non-ascii chars to questions ????

ps: I notice the default in atmel studio for .cpp files does not cater for non-us characters, but Visual Studio automatically prompts when you enter or paste unicode into the source.
« Last Edit: Jun 14th, 2014 at 10:23pm by Tim@Visual Micro »  
Back to top
IP Logged
 
EvgeniK45
Junior Member
**
Offline


Posts: 15
Location: Russian Federation
Joined: Jan 20th, 2013
Re: Non US characters compiller error
Reply #3 - Jun 15th, 2014 at 2:53am
Print Post  
Yes it work's!!!  Cheesy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint