mailparser icon indicating copy to clipboard operation
mailparser copied to clipboard

Incorrect value mySql

Open tyzion opened this issue 2 years ago • 0 comments

Hi, I don't know if this is an issue with the mailparser, but I think it is.

Here's the problem: I have a process which parse emails with the simpleParser and save the text in a MariaDB. I usually use the textAsHtml property and it has never given me any error... Until a few days ago. I don't know why but i think it just ignores a kind of apostrophe.

Here's the part of the email with the apostrophe (taken from the email): all’Agenzia

Both text and textAsHtml ignore it, at least from what I see in my console.

From the html property it decodes it as ’

The peculiar thing is that it gave me an error because of a language setting of my db incorrect string value\xC2\x92Agen... Once I changed that setting it stopped giving me the error, but the apostrophe still seems to be missing. Also if I tried, before the modification, to save it manually in the database, copying the apostrophe from the email, everything went well.

Hope I was clear enough :) Thanks in advance.

tyzion avatar Aug 04 '22 12:08 tyzion