The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

I had saved a config file(this configfile has many unicode chars,is ok) , then i load it,and save it at another path(to do save us ), the new one's each unicode chars become unreadable(only english chars worked)

why?

in Engine by (59 points)

my code such as:
var f =ConfigFile.new()
f.load(oldpath)
f.save(new
path)

paths is noproblem
but the new file become unreadable chars

the old file,i had opened,it's no problem, it had saved the unicode chars,and it is utf8 in default

ps:
I see ..in my last find,section\key canot use unicode,but the value can do it.
is that so?

1 Answer

0 votes

It sounds like a bug.
I would recommend to create an issue and attach a minimum example.
https://github.com/godotengine/godot/issues

by (324 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.