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 Compiling, unicode problem (Read 2751 times)
Gillian
Junior Member
**
Offline


Posts: 31
Joined: Nov 28th, 2014
Compiling, unicode problem
Nov 29th, 2014 at 9:08am
Print Post  
Hello!

I have a small problem, which is that I am french, and we use characters like é, à, ç, etc.

When I compile and upload my arduino program which contain such letters in strings, once viewed, for example, in any serial monitor program, it will show as for example "ç" for "ç".

I had this exact same problem with the Arduino IDE, but I solved it by setting preproc.substitute_unicode to false, in preferences.txt. After doing this change, and recompile/reupload my arduino program, I was able to see those characters correctly, in any serial monitor program.

I was wondering if there is a way to do the same thing with Visual Micro, or maybe it's a bug and in this case, this is a suggestion Tongue

Thanks in advance Wink
« Last Edit: Nov 29th, 2014 at 9:10am by Gillian »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiling, unicode problem
Reply #1 - Nov 29th, 2014 at 4:46pm
Print Post  
Hi,

Visual Micro is not substituting the unicode because it seemed like a pointless exercise.

If you save and re-open the code file is it retaining the correct characters?

The issue is either the way the code is being saved which you can control via "File>Save As" or the char formatting of the serial monitor.

Please try uploading with Visual Micro and then viewing the serial output in the Arduino Ide. This will tell us if the Visual Micro compilation or the serial monitor is at fault

Thanks
  
Back to top
IP Logged
 
Gillian
Junior Member
**
Offline


Posts: 31
Joined: Nov 28th, 2014
Re: Compiling, unicode problem
Reply #2 - Nov 29th, 2014 at 9:36pm
Print Post  
Yes, maybe I didn't explained correctly, but it's when I compile/upload with VM, then every serial monitors (be it Arduino IDE's, VM's, Termite...) will display "ç" instead of "ç".

If I compile/upload with Arduino IDE (with the setting modified as said), then those serial monitors will show correctly "ç".

Try it Tongue

I can't find an option "File -> Save as" in Visual Studio Community. If I open my sketch with Notepad and Save with Unicode (also tried with UTF-8) formatting, that makes no difference at all.

I really would like a fix for this please Smiley

Thanks.
« Last Edit: Nov 29th, 2014 at 9:36pm by Gillian »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint