Unicode encoding problems

  • 1
  • Problem
  • Updated 4 years ago
http://api.wunderground.com/api/KEY/lang:KR/forecast10day/geolookup/conditions/almanac/hourly/q/34.7...

Such requests are giving problems with unicode encoding. As you can see in the Json response, instead of having the city name in Korean, we have a set of unicode codes

like: "city":"\u00EB\u00AA\u00A9\u00ED\u008F\u00AC\u00EC\u008B\u009C",

and sometimes it is even mixed with proper encoding:
"full":"\u00EB\u00AA\u00A9\u00ED\u008F\u00AC\u00EC\u008B\u009C, 대한민국",

metric values have this issue:
"fcttext_metric":"\u00EB\u00B6\u0080\u00EB\u00B6\u0084\u00EC\u00A0\u0081\u00EC\u009C\u00BC\u00EB\u00A1\u009C \u00ED\u009D\u0090\u00EB\u00A6\u00BC. \u00EC\u00B5\u009C\u00EC\u00A0\u0080 5\u00E2\u0084\u0083. \u00ED\u0092\u008D\u00ED\u0096\u00A5 \u00EB\u008F\u0099\u00EB\u00B6\u0081\u00EB\u008F\u0099\u00EC\u009D\u00B4\u00EB\u00A9\u00B0 \u00EB\u00B3\u0080\u00ED\u0099\u0094 \u00EC\u008B\u00AC\u00ED\u0095\u00A8.",

while the non metric one is correct:
"fcttext":"부분적으로 흐림. 최저 42°F. 풍향 동북동이며 변화 심함.",

This seems to be a problem on your end.
Photo of LevelUpStudio

LevelUpStudio

  • 5 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of LevelUpStudio

LevelUpStudio

  • 5 Posts
  • 0 Reply Likes
I see you fixed it, thank you!