Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > HTML / Design

HTML / Design Are you a designer? Or just trying to become one? Great! You'll be able to talk about layouts, and HTML code to help your fellow designers, so everyone can work together to master the tricks of the trade. (Maybe even some JavaScript too!)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-21-2009, 01:34 PM
Margo Margo is offline
Junior Member
 
Join Date: Aug 2009
Posts: 3
Default changing encoding in HTML and PHP files on my hosting

How can I send my own header for encoding? With what command line is change the default encoding in HTML and PHP files on my hosting?
Reply With Quote
  #2  
Old 08-21-2009, 02:03 PM
cech's Avatar
cech cech is offline
Member
 
Join Date: Feb 2009
Posts: 77
Default Re: changing encoding in HTML and PHP files on my hosting

Follow this HTML structure and use meta tag for encoding.
HTML Code:
<html>
<head>
<style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</style>
</head>
<body>
...
</body>
</html>
On PHP the header for encoding is sent as follows:
PHP Code:
header('Content-type: text/html; charset=UTF-8'); 
Reply With Quote
Reply

Tags
changing, encoding, files, hosting, html, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On

Forum Jump


All times are GMT -4. The time now is 06:33 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.