Special characters in scripts?

Asked by Alejandro Farah

Hi all. I am making a scrpit and I am interested in using a label in spanish to get an image. I have been looking several web places and the information about scripts in spanish is poor. Does any one know how to place special characters? I want to place accents, á, é, í, ó, ú and ü. Thank you in advanced.

Question information

Language:
English Edit question
Status:
Solved
For:
Stellarium Edit question
Assignee:
No assignee Edit question
Solved by:
Alejandro Farah
Solved:
Last query:
Last reply:
Revision history for this message
Alexander Wolf (alexwolf) said :
#1

Scripts should be in UTF-8 ;)

Revision history for this message
Alejandro Farah (farah-x) said :
#2

I am sorry about my ignorance but, how can I place the instruction for using UTF-8?

LabelMgr.labelScreen("Alejandro Farah Simón",200,200,true,20,"#ff0000");

The problem is the "ó".

Do I have to declare at begining of the script the use of UTF-8 and how?

Revision history for this message
Alexander Wolf (alexwolf) said :
#3

Are you use Windows?

Revision history for this message
Alejandro Farah (farah-x) said :
#4

Yes, windows XP.

Revision history for this message
Alexander Wolf (alexwolf) said :
#5

Please try use Notepad++ (http://notepad-plus-plus.org/) for edit script.

Revision history for this message
Alejandro Farah (farah-x) said :
#6

Alexander Wolf: THANK YOU, it worked very good! Once I finished I will put the script as opensource.