plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

Please take a moment to read the platform’s guidelines before you get started!


question

gonzalofrv avatar image
gonzalofrv asked FlyingRaccoon commented

Nearest airport charset

Hello everyone, I am working on an avionics with read access to nearby airports with javascript. I have had problems with the character set when getting the name of the airport (ident), the problem is that it does not show characters like the letter "ñ" or characters with accents. To get the information of the nearest airports I am using the simulator class NearestAirportList from the file asobo-vcockpits-instruments\html_ui\Pages\VCockpit\Instruments\Shared\FlightElements\NearestWaypoint.js
Also in the HTML code I am defining <meta charset="utf-8" /> but I still have the same problem.
Do you know how I can solve this problem?

gaugeshtml
4 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

FlyingRaccoon avatar image FlyingRaccoon ♦♦ commented ·

Hello @gonzalofrv

Do you have an airport ICAO in mind so I could check?
Also, what instrument are you creating?
I am not sure we anticipated the support for this.
Regards,
Sylvain

0 Likes 0 ·
gonzalofrv avatar image gonzalofrv FlyingRaccoon ♦♦ commented ·

Hi Sylvain

Yes I have, for example SCVM, SCOM

0 Likes 0 ·
gonzalofrv avatar image gonzalofrv gonzalofrv commented ·

SCVM (Viña del Mar): in this case I have problems with the ñ character.

SCOM ("Aeródromo de Olmué"): in this case I have problems with the accent character.

0 Likes 0 ·
Show more comments

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.