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

Thai Letters Not Showing Properly on AWS Landers (14)


04-14-2019 08:45 AM #1 s3ks3k (Senior Member)
Thai Letters Not Showing Properly on AWS Landers

Hi there,

So basically I wanted to run some camps in TH, had the landers ripped and fixed up, looks all good when the html files are opened raw on my PC.

But once I upload on my S3 buckets and test the links, the letters show up as random symbols like $!&(^!($*&@!(#*

Anyone had this problem and know a way to get around this? Tried googling this but nothing really came up.

Help would be much appreciated!


04-14-2019 08:50 AM #2 nickpeplow (AMC Alumnus)

Might be a font missing that wasn’t downloaded or referenced correctly


Sent from my iPhone using STM Forums mobile app


04-14-2019 09:08 AM #3 s3ks3k (Senior Member)

Quote Originally Posted by nickpeplow View Post
Might be a font missing that wasn’t downloaded or referenced correctly


Sent from my iPhone using STM Forums mobile app
There weren't any external font files or references in the original ripped landers, and it shows up properly when opened raw on my PC.

Could it be an issue with AWS itself and that they can't support certain languages?


04-14-2019 09:18 AM #4 nickpeplow (AMC Alumnus)

When you say raw, do you mean looking at the code, or opening the .html file in your browser


Sent from my iPhone using STM Forums mobile app


04-14-2019 09:23 AM #5 s3ks3k (Senior Member)

Quote Originally Posted by nickpeplow View Post
When you say raw, do you mean looking at the code, or opening the .html file in your browser


Sent from my iPhone using STM Forums mobile app
Opening the html file in my browser


04-14-2019 03:06 PM #6 vortex (Senior Moderator)

Weird! @s3ks3k can you upload the lander to pastebin and drop the link in here? I can take a look (please don't PM - I've given up on keeping up with those).



Amy

Sent from my SM-G930W8 using STM Forums mobile app


04-14-2019 03:42 PM #7 s3ks3k (Senior Member)

Quote Originally Posted by vortex View Post
Weird! @s3ks3k can you upload the lander to pastebin and drop the link in here? I can take a look (please don't PM - I've given up on keeping up with those).



Amy

Sent from my SM-G930W8 using STM Forums mobile app
Awesome thanks for the help, here it is: https://pastebin.com/aHhH8zqw


04-14-2019 04:06 PM #8 vortex (Senior Moderator)

Lander appears fine in S3!

Did you save the file as UTF-8?




Amy


04-14-2019 04:28 PM #9 s3ks3k (Senior Member)

Quote Originally Posted by vortex View Post
Lander appears fine in S3!

Did you save the file as UTF-8?




Amy
Wait so I should save the file as a .txt not a .html? Bit confused as the .html doesn't have the UTF-8 extension (I'm using sublime text btw)


04-15-2019 03:15 PM #10 s3ks3k (Senior Member)

Bump! @vortex just wondering if you've managed to figure this out, thanks!


04-15-2019 05:30 PM #11 thedudeabides (Moderator)

I recall someone having a similar issue before. Did you try changing the html lang attribute in the code? Meta charset is the tag where you'd put the UTF-8.


04-15-2019 05:47 PM #12 eurosen (AMC Alumnus)

Quote Originally Posted by thedudeabides View Post
I recall someone having a similar issue before. Did you try changing the html lang attribute in the code? Meta charset is the tag where you'd put the UTF-8.
This will most probably be the issue.


04-16-2019 07:40 AM #13 s3ks3k (Senior Member)

Quote Originally Posted by thedudeabides View Post
I recall someone having a similar issue before. Did you try changing the html lang attribute in the code? Meta charset is the tag where you'd put the UTF-8.
That was the issue, managed to fix it by adding that in the code!

Thanks


04-17-2019 07:23 AM #14 vortex (Senior Moderator)

Apologies for the late reply! But great to see @thedudeabides has resolved this!

I simply saved the file as .txt with the correct encoding, then edited the filename to the .html extension.

But thedudeabides' solution is better!



Amy

Sent from my SM-G930W8 using STM Forums mobile app


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