+ 1

Chinese word.... turn into alien language

When i write some chinese word in my HTML code in the code playground it shows the word when i run it but when i copy the code into my pc and run it ,it shows me some weird words like this .....: ä½ å¥½ï¼Œå¦‚æžœä½ æ˜¯ä¸ªåŽäººæˆ–ä¸­å›½äººå’Œä½ çš„è‹±è¯­å¾ˆå¼±ã€‚ã€‚ã€‚ã€‚ã€‚ä½ åƒä¸‡ä¸èƒ½æ”¾å¼ƒå› ä¸ºï¼Œå¤©ä¸‹æ— éš¾äº‹ï¼Œåªæ€•æœ‰å¿ƒäººã€‚ã€‚å’Œå¤±è´¥æ˜¯æˆåŠŸä¹‹æ¯ã€‚ã€‚ã€‚åŠ æ²¹å§ã€‚ã€‚ã€‚(⌒o⌒) can someone help me solve this problem...

5th Jan 2017, 10:47 AM
Leon lit
Leon lit - avatar
4 Answers
+ 4
Make sure you have the localization to run chinese text on your pc and add this to your html header. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> UTF-8 is an encoding that allows the proper text to be displayed. See: https://en.wikipedia.org/wiki/UTF-8
5th Jan 2017, 10:53 AM
Alex
Alex - avatar
+ 2
thanks for the help :D
5th Jan 2017, 10:57 AM
Leon lit
Leon lit - avatar
+ 1
add following line to your <head>-tag <meta charset="utf-8">
5th Jan 2017, 10:50 AM
Andreas K
Andreas K - avatar
+ 1
It's not possible to choose the file encoding type at Code Playground..
5th Jan 2017, 10:55 AM
Andreas K
Andreas K - avatar