Autodetect encoding not working properly

developeris

Member²
Hi,
I have set autodetect in Files/Format/Encoding.
When I open UTF8 encoded file (with BOM present), make some changes and save the file, it gets converted to ANSI. I guess if source is in UTF8, there's nothing to autodetect - just save in UTF8 :)

Or make an option to preserve the original encoding.

pl/sql developer version 10.0.4.1708

thanks
developeris
 
Last edited:
I assume the file contents were strictly ANSI in this case? Because that is what the autodetect option looks at.
 
I'm not sure how ANSI detection exactly works, but here's the problem I had when UTF8 was replaced with ANSI. Original package source had UTF8 encoding with some Swedish comments in it (with some Swedish special characters in there). I opened it in developer, made some changes, saved, committed into SVN and all of the sudden all rows, which had Swedish comments were showed as changed, even though I didn't change them at all. That's why changing from UTF8 to ANSI is dangerous in my opinion. Option to preserve the original encoding would solve this.
 
Back
Top