The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> How to have some UTF-8 text in PhP file?, I cant save the file with UTF-8 text in it.I
Conoco
post Jul 10 2010, 12:09 AM
Post #1


Newbie
*

Group: Members
Posts: 14
Joined: 11-May 10
Member No.: 11,837



Hello, I want to add some UTF text into my php file but the text after when i save it looks like scrambled text nonsense.

Here is the part of my code:

CODE
<?php
defined('_VALID') or die('You shall not pass!!');
$seo = array();
$seo['index_title']        = 'utf-8 text in here';


Any ideas on what to do? Is there any command i can put like in html there is:

CODE
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


Thank you for your time.

This post has been edited by Conoco: Jul 10 2010, 12:10 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 04:28 AM