UTF-8 decoded error and rider modified the file
Hi,
My Rider (v 2021.3.3) seems not able to decode using UTF-8 charset and then automatically modified the file. Please refer to attached image.
what should I do to avoid this? Thanks!
Please sign in to leave a comment.
Hi Hanyi8110!
What is your OS? Could you please check the settings of Project/Global encoding in File | Settings | Editor | File Encodings and change it if necessary?
Thanks!
Hi
It is windows. Encoding is already set as system default windows-1252.
Please suggest, Many thanks
Yi
Hi Hanyi8110!
Could you please try to change Project Encoding to UTF-8 and check if this helps? Thanks!
Hi Alexandra,
Thank you for your reply.
with project encoding UTF-8, still the same problem. :/
Hi,
Could you please share your file (original version) via uploading it to https://uploads.jetbrains.com/ and let me know the exact uploads ID?
I'll try to reproduce it. Unfortunately, I had no luck in reproducing on simple case.
Do I understand correctly that you get that file from VCS?
K.R.
Sofia
Hi Sofia,
uploaded 2 files, one with prob another no prob.
Upload id: 2022_07_21_RG1mZN18dTAwY9ADNw1J19 (files: rider utf-8 NO PROB.cs, rider utf-8 prob.cs)
Thanks.
Yi
Hello,
Would you mind elaborating on your scenario? Do I understand correctly, that you receive this file from VCS?
Would you mind trying to checkout to the earlier version and check if the issue persists?
Thank you in advance!