[Github-comments] [geany/geany] 'ñ' not converted when changing encoding (Issue #3141)

JohnCC330 notifications at github.com
Fri Apr 1 04:47:54 UTC 2022


Sorry for the delay... 

`File | Properties` says the file is utf-8, which is the same encoding as is selected in `Document | Set encoding...`. Running `chardet` on it returns `ISO-8859-9`  (which I understand is as valid as ISO-8859-1 and others).

If I look inside the file, I find: (the `ñ` is at 0x122)

```
     120  20 61 c3 b1 6f 73 3a 20  22 20 2e 0a 20 20 20 20   a..os: " ..
     130  20 20 77 33 5f 6c 69 6e  6b 32 73 28 22 77 65 65    w3_link2s("wee                                                         
```
The strange thing is that `chardet` claims `ISO-8859-9` which should have 'ñ' as a one-byte code. I load the file in Python3 as `open('weekly.php', rb)` and pass the contents as `bytes` to `chardet... 

So, the issue does not seem to be Geany's.

Thanks for the info though!


-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3141#issuecomment-1085419171
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/3141/1085419171 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220331/240137c6/attachment.htm>


More information about the Github-comments mailing list