Home > Technical & Creative Skills > Programming, Servers & Scripts

Lander is garbled after uploaded on AWS??? (6)


08-10-2021 07:03 AM #1 yyan526 (Member)
Lander is garbled after uploaded on AWS???

Hi all,

Does anyone facing trouble when uploading html file to AWS and the website is garble. The lander I tried to upload is a German lander that I downloaded from spy tool, the original file looks like this:

but it turned up looking like this:


I've tried searching up online and change the UTF-8 text setting in AWS but failed.

Does anyone know how I can fix this problem? Thanks


08-10-2021 10:19 AM #2 larsometer (Senior Member)

Do you have language setting in your html head?

<html lang="de" xml:lang="de" xmlns="http://www.w3.org/1999/xhtml"> or <html lang="de">



08-10-2021 10:26 AM #3 jeremie (Moderator)

Send the link if you want us to check.

You are most probably reading the file using the S3 URL. Trying reading the file from Cloudfront so that the text encoding header is added.

Or see how to define header at S3 level
https://stackoverflow.com/questions/...oded-strangely


08-10-2021 11:48 AM #4 yyan526 (Member)

This is the link to the lander: https://healthprotector-site.s3.amaz...nge/index.html

You are most probably reading the file using the S3 URL.
Yes, I'm reading the link using S3 URL, but I don't know how can I reading the file from Cloudfront. I can only see the distributions part in cloudfront


08-10-2021 03:31 PM #5 jeremie (Moderator)

Have a look at @vortex 40 day guide. There is a section about connecting CloudFront, S3 and a domain. That should help you.


08-10-2021 11:41 PM #6 vortex (Senior Moderator)

Here's the link to that lesson for your reference:

https://stmforum.com/forum/showthrea...osting-and-CDN



Amy


Home > Technical & Creative Skills > Programming, Servers & Scripts