serverless-lambda-chrome icon indicating copy to clipboard operation
serverless-lambda-chrome copied to clipboard

Unicode characters don't come out right?

Open isocra opened this issue 6 years ago • 2 comments

Hi,

Thanks for your article and this repo. It works great locally and I can deploy it to AWS no problem too. But I can't get it to render a unicode tick properly. I changed the text in your example to

  const myContent = "<p>Tick with unicode &#x2714;</p>";

and you'll see from the attached PDF, that it has rendered the tick as a box with a cross through.

Do you have any idea why it works locally but not in AWS?

Thanks again!! response.pdf

isocra avatar Jan 28 '20 12:01 isocra

Hi @isocra , sorry I just got back from holiday. Is it still a problem?

crespowang avatar Feb 06 '20 11:02 crespowang

Hi @crespowang, yes I'm afraid so. In the end the only work around we found was to use an SVG image and make a tick that way.

It only happens in AWS. Running locally it works fine.

isocra avatar Feb 07 '20 09:02 isocra