You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "ShaiviAgarwal2 (via GitHub)" <gi...@apache.org> on 2024/03/06 17:06:03 UTC
Re: [I] Encoding issue while running the setup.py file [dubbo-python]
ShaiviAgarwal2 commented on issue #29:
URL: https://github.com/apache/dubbo-python/issues/29#issuecomment-1981368845
> While running the setup.py file in the terminal there is an error i am encountering that suggests that there's an issue with decoding a file (README.md) using the 'cp1252' codec.
>
> The corresponding code:
>
> long_description=open("README.md").read(),
>
> The error it is showing :
>
> ` long_description=open("README.md").read(), File "C:\Python310\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 81: character maps to <undefined>`
@AmarX23 According to my understanding, the error is due to the 'cp1252' codec which is unable to decode a certain character in the README.md file. This happens generally if the file contains non-ASCII characters.
Solution to this can be to specify the encoding when opening the file. The **'utf-8'** codec is capable of decoding a wide range of characters.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org