Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.
PLEASE READ - Webmaster Support Forum
This forum will be retired in the near future. Please direct all queries to our dedicated GitHub support page https://github.com/vatsimnetwork/developer-info/discussions 
Here you can find documentation on our services and we are continuing to migrate pertinent information into the Wiki pages https://github.com/vatsimnetwork/developer-info/wiki

UTF8 - Name values


Kieran Hardern
 Share

Recommended Posts

Kieran Hardern
Posted
Posted

Something I forgot to put in the system overview, and have now amended.

 

Name values (name_first and name_last) are UTF8 encoded before they are sent to you. This probably doesn't affect most people, however be aware that you may wish to decode from UTF8 if you use that data.

Link to comment
Share on other sites

Bradley Grafelman
Posted
Posted

Keep up the great work Kieran! Here's a Unicode high-five for you...

 

( ‘-’)人(゚◡゚ )

Link to comment
Share on other sites

  • 10 months later...
Mathias Johnsen 839996
Posted
Posted

Hi Kieran

 

I'm struggeling with fixing the names of our members on our forum and member list.

 

"Håvard Halvorsen" (in the vatsim database) is returned to us as "HÃ¥vard Halvorsen" via the SSO login in IP.Board.

As well as in http://api.vateud.net/members/SCA.json we get this return: "H\u00c3\u00a5Vard" = "HÃ¥Vard"

 

Suggestions?

--

 

Yours Sincerely

Mathias Johnsen

Server Administrator VATSIM Scandinavia

mej(a)vatsim-scandinavia.org

Link to comment
Share on other sites

Kieran Hardern
Posted
Posted

I think your answer is this thread - make sure you're correctly working with UTF8!

 

Given the issue I'd say start at the very end and work backwards to find exactly where things are going wrong. So look first at what text encoding your browser is displaying it to you in when you see that output - the most likely explanation being that you're viewing a UTF8 string but your browser is interpreting otherwise. Following that go back to make sure it is being converted/stored correctly.

 

(Edit: I'm talking only about SSO here, EUD API is not managed by me, or run from SSO data)

Link to comment
Share on other sites

 Share