Comments (6)
This can be solved by adding "use open ":std", ":encoding(UTF-8)";" to the top of /home//perl5/bin/msgconvert
from email-outlook-message-perl.
There's actually a file which triggers this in the testsuite already, and no other command line options are required:
$ script/msgconvert t/files/plain_uc_wc_unsent.msg
Wide character in print at script/msgconvert line 58.
I'm using Debian unstable.
(I'm not yet sure if this is the same problem or not, but FWIW I'm getting a similar issue in my own code when I request body_str
on an Email::MIME object I get from Email::Outlook::Message:
Wide character at /usr/share/perl5/Email/MIME.pm line 376.
I'm in the process of investigating, went to check if someone had reported it already, and found this ticket and that the file I was testing with triggers this issue too.)
from email-outlook-message-perl.
If anyone seeing this error can provide the following, that would be great:
- A msg file that triggers the problem
- The command line you use to trigger the problem
- The operating system you're using
from email-outlook-message-perl.
@mvz I found that the output file in msgconvert used to be set to be :utf8
but that was removed by #7.
In #7 it is mentioned that things are still broken until rjbs/Email-MIME#36 is merged in Email::MIME, but that PR doesn't seem to have gone well and was closed without merging.
It's still unclear to me exactly what's broken and where, but I don't think it's msgconvert (or at least not entirely) as I'm seeing similar issues with my own code.
from email-outlook-message-perl.
My proposed changes from #17 eliminate this error:
$ perl -Ilib script/msgconvert t/files/plain_uc_wc_unsent.msg
$
(-Ilib
is just needed so that the in-tree module is used rather than the system-installed one.)
from email-outlook-message-perl.
Thanks for looking into this @ojwb
from email-outlook-message-perl.
Related Issues (20)
- Can't open files with leading space characters HOT 4
- Installation instructions for Windows HOT 1
- "From " lines as mbox separators
- line endings on unix system HOT 4
- Failed tests on macOS HOT 4
- Keep knowledge of encoding for text properties around
- Add caching to Github Action HOT 1
- Run msgconvert as non-root HOT 10
- Run as a container HOT 1
- Wide character errors HOT 5
- charset name UTF8 do not conform IANA HOT 3
- Wide character in print at /usr/bin/vendor_perl/msgconvert line 397, error with latest update (0.920) HOT 3
- How to display the application/rtf part in Thunderbird?
- Failed test 'Checking if body structure for t/files/plain_jpeg_attached.msg is the same' HOT 2
- codepage CP28592 unknown HOT 1
- mail format HOT 1
- a converted message have a broken encoding in a message body (have cp1251 in msg ) HOT 3
- Does it support the reverse conversion? HOT 1
- Conversion to .eml in Windows - extra newlines break attachments HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from email-outlook-message-perl.