Not English letters in the MessageBox

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

Not English letters in the MessageBox

Postby shad » Wed Oct 18, 2017 7:23 pm

Hello Balazs!
I am try to add MessageBox in to the macro. The message on the Russian language looks like abracadabra.
English - fine.
How can I solve this?
Thank you!!
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 332
Joined: Thu Sep 15, 2016 5:23 pm

Re: Not English letters in the MessageBox

Postby cncdrive » Wed Oct 18, 2017 8:39 pm

Hi Andrew,

The Messagebox is a Windows/.Net built in function, so if the text does not appears correctly when you calling MessageBox.Show is not an issue of the UCCNC, but something to do with Windows or the .NET framework.
Unfortunately I never studied how Windows handling different charactersets, so I don't really know how it handles the Cyril charset.
I also can't check this at the moment, because I don't have a Russian Windows and last time when an issue with a charset was reported (I think it was Korean probably) then I've learnt that installing the language pack is not the same as using an originally Korean Windows. I guess that the same applies for Russian language pack and originally Russian Windows.

Maybe you can post some printscreens and then I will try to read after what could be the issue, I mean seeing how the text appears might help for me to know what to "google" after.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Not English letters in the MessageBox

Postby shad » Thu Oct 19, 2017 6:23 am

Hello Balazs!
OK, I will try to search any information about this too.
Inside plugin all works correctly.
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 332
Joined: Thu Sep 15, 2016 5:23 pm

Re: Not English letters in the MessageBox

Postby shad » Fri Oct 20, 2017 9:26 am

Solved - I am change encoding from UTF-8 to ANSI in the macros file. Works perfect.
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 332
Joined: Thu Sep 15, 2016 5:23 pm


Return to Macros

Who is online

Users browsing this forum: No registered users and 5 guests