Author Topic: site encoding  (Read 3008 times)

omyalpha

  • Newbie
  • *
  • Posts: 6
site encoding
« on: June 27, 2007, 10:18:08 AM »
my site users will want to enter tags and video descriptions in languages other than english (mostly Arabic), is there a way to change page encoding?

i see the mysql is MyIsam which supports Arabic encodings... but i don't know how to edit uploader.php and editvideo.php to accept special encoded characters... any ideas?

Dionysos

  • Newbie
  • *
  • Posts: 6
Re: site encoding
« Reply #1 on: August 09, 2007, 06:31:15 AM »
I had the same problem.I would like to use Turkish characters in my website.I spent too much time to find a way for it.I added smt to the php files and I also changed my encoding type from phpmyadmin and problem fixed.I can use turkish characters in my site.Some people said change meta tag row from each template but it didnt work.I'm going to explain how to use my way.

1-) Create a new php file and add these

<?php

header("Content-Type: text/html; charset=utf-8");

?>

I chose UTF-8 because it was the most suitable for my language.Change it according to you.Save it like abc.php

2-)Add this file into all php files with this include_once ('abc.php'); .Save abc.php in the root of your website.It will solve your problem.

Don't forget to change encoding from phpmyadmin
« Last Edit: August 09, 2007, 06:32:59 AM by Dionysos »

kazem66

  • Newbie
  • *
  • Posts: 5
Re: site encoding
« Reply #2 on: December 13, 2007, 08:22:30 PM »
Hello
Could you explain more this one
2-)Add this file into all php files with this include_once ('abc.php'); .Save abc.php in the root of your website.It will solve your problem.

kazem66

  • Newbie
  • *
  • Posts: 5
Re: site encoding
« Reply #3 on: December 15, 2007, 07:44:57 PM »
Thank you
Do you mean add this to All php file
<?php

header("Content-Type: text/html; charset=utf-8");

?>

kazem66

  • Newbie
  • *
  • Posts: 5
Re: site encoding
« Reply #4 on: December 15, 2007, 08:14:06 PM »
AND WHERE TO PUT IT EXACTLY?

nicolouris

  • Newbie
  • *
  • Posts: 11
Re: site encoding
« Reply #5 on: January 14, 2010, 04:07:22 PM »
Hello

Please can you explain the second step?I dont understand.