问题
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