Support for unicode utf-8 charmaps
See original GitHub issueUsing mailmerge to send mass emails is better than using any gmail extensions, since i have the ability to use advanced markdown and html however while working with a large (5k+) csv file of job applicants, i came across an issue that people had entered their names in a localized language (eg. mandarin, etc) that sometimes didn’t fit the ascii charmaps.
It would be useful to open the csv file as encoding=utf8
with errors=ignore
to avoid errors like this:
'charmap' codec can't decode byte 0x9d in position 1710: character maps to <undefined>
instead of just returning true if strings are ascii.
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (16 by maintainers)
Top Results From Across the Web
Unicode/UTF-8-character table
UTF-8 encoding table and Unicode characters. page with code points U+0000 to U+00FF. Share on Facebook Share on Google+ Tweet about this on...
Read more >UTF-8 and Unicode FAQ for Unix/Linux
C support for Unicode and UTF-8; How should the UTF-8 mode be ... encoding in your current locale with the command locale charmap...
Read more >How can I enable UTF-8 support in the Linux console?
Set CHARMAP="UTF-8" in /etc/default/console-setup . Run systemctl daemon-reload && systemctl restart console-setup.service afterwards.
Read more >Chapter 5 Overview of UTF-8 Locale Support
Unicode Locale: en_US.UTF-8 Support. The Unicode/UTF-8 locales support Unicode 4.0. The en_US. ... Use the Character Map application (charmap) instead.
Read more >Decode unicode charmap (most likely non-standard) with PHP
My issue is that I don't know what encoding it is in, I tried several decoding methods (including json_decode and mb_convert_encode('\u00c3\ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@seshrs awesome! I will try this.
GitHub doesn’t support csv uploads so here’s a txt file of the csv: mailmerge_database_txt.txt
edit: uploaded the mailmerge_database.csv here, just in case we have any issues with csv as a txt file https://github.com/thecodelearner/tmp-files/blob/master/mailmerge_database.csv
also, I think that my python installation on windows is broken since the same file runs perfectly on linux, but gives the UnicodeDecodeError on Windows
—> Running mailmerge on Windows:
—> Running mailmerge on Linux with exact same database.csv: