Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Programming
Reload this Page Unable to Display the Correct Special Character
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
Member
stannwl is on a distinguished road
 
Posts: 38
Join Date: May 2012
Default Unable to Display the Correct Special Character - 05-19-2012, 08:29 AM

Hi All,

I'm writing some text on my website and using this special character " ' ". When i upload the file with text, this special character is being converted to 2 square while viewing the website.

Is there anyway i can get the correct special correct up on the website?

Regards
Stanley
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 6,537
Join Date: Jul 2009
Location: Spain
Default 05-19-2012, 09:00 AM

hello,
You should look into the head section of your page that type of character encoding you're using.

For example, encoding 000webhost this forum is iso-8859-1:
HTML Code:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />


Recuerda realizar copias de seguridad de tus sitios web. Si este mensaje te ayudó puedes pulsar sobre el botón karma
Reply With Quote
(#3 (permalink))
Old
Member
stannwl is on a distinguished road
 
Posts: 38
Join Date: May 2012
Default 05-19-2012, 09:18 AM

Hi d3iti,

I don't get what you mean. I'm not sure what encoding or stuff as i'm just learning to built a website.

Below is the link to my website. Let me know how to check the encoding or if you can see and tell me from my code.

http://www.stannwl.site90.net

Thanks

Stanley

[30 minutes later]

I've manage to find the code to replace the special character. This special character is actually a reserve character, hence need a code as a replacement.

Just a question, is there any other faster way to use these reserve character?

Last edited by d3iti; 05-19-2012 at 11:23 AM.
Reply With Quote
(#4 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 6,537
Join Date: Jul 2009
Location: Spain
Default 05-19-2012, 11:23 AM

You can try changing the beginning of your website:
HTML Code:
<header>
		<meta charset="utf-8">
		<title> Website Trial </title>
		<!-- Google Web Fonts for the demo -->
		<link href='http://fonts.googleapis.com/css?family=Carter+One' rel='stylesheet' type='text/css'>
		<!-- Basic Jquery Slider styles (This is the only essential css file) -->
		<link rel="stylesheet" href="contact_styles.css">
    </header>
For the following code:
HTML Code:
<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title> Website Trial </title>
		<!-- Google Web Fonts for the demo -->
		<link href='http://fonts.googleapis.com/css?family=Carter+One' rel='stylesheet' type='text/css'>
		<!-- Basic Jquery Slider styles (This is the only essential css file) -->
		<link rel="stylesheet" href="contact_styles.css">
    </head>
I have used the label <head> instead of <header>.
I have also put the correct line to encode your HTML code to use UTF-8.


Recuerda realizar copias de seguridad de tus sitios web. Si este mensaje te ayudó puedes pulsar sobre el botón karma
Reply With Quote
(#5 (permalink))
Old
Member
stannwl is on a distinguished road
 
Posts: 38
Join Date: May 2012
Default 05-21-2012, 01:01 PM

Hi d3iti,

Thanks for the edited code. The reserved character is able to display correctly now
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com