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!

7 comments
Comment actions Permalink

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! 

0
Comment actions Permalink

Hi

It is windows. Encoding is already set as system default windows-1252.

Please suggest, Many thanks

Yi

0
Comment actions Permalink

Hi Hanyi8110

Could you please try to change Project Encoding to UTF-8 and check if this helps? Thanks! 

0
Comment actions Permalink

Hi Alexandra,

 

Thank you for your reply.

with project encoding UTF-8, still the same problem. :/

0
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

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!

0

Please sign in to leave a comment.