Firebase Database - Wrong Encoding

戏子无情 提交于 2019-12-24 00:19:01

问题


I am new to Firebase and I want to use their Database, but there seems to be some issues with the encoding. Here is my example json with UTF-8 Encoding:

[
 {
   "Stack": "This is madness! äüöß ",
   "Overflow": 666
 }
]

And this is the result, when I import the json to Firebase:

What can I do to import characters like "äüöß" to the Firebase Database?

Thank you!


回答1:


thank you for your answers. I used the Web Console to import the json (https://console.firebase.google.com/project/[projectname]/database/).

But the mistake was the encoding. I thought, because of the option in Notepad++

Settings --> Preferences --> New Document --> Encoding --> UTF8 (Apply to open ANSI files)

that my file was UTF-8 encoded. But a simple

Encoding --> Convert to UTF-8 

did the trick.

Thank you for your help.



来源:https://stackoverflow.com/questions/40668057/firebase-database-wrong-encoding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!