Jump to content

Working with urdu/arabic languages


abidshahzad4u

Recommended Posts

Hi dears

 

New to this forum but not development

 

How can I add Urdu/Arabic into PHP pages. I have already implemented UTF-8 encoding but the text appears to be question mark series. Also how to store Urdu/Arabic language to MySQL database.

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/160746-working-with-urduarabic-languages/
Share on other sites

I have already implemented UTF-8

Explain how you have done this.

 

For MySQL make sure you have chosen the correct encoding for your tables. Also use this query after connecting to the database prior to any insert query:

mysql_query("SET NAMES UTF8");

Sorry for too late

 

thanks for suggesting database information.

 

I have added this in the meta tag like

 

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

 

but I was still unable to get correct Urdu/Arabic words, just only question marks

Would like to put a little example.

 

I can't understand how to implement this.

 

I this where to place herader. in the start of the page once or every time when some urdu/arabic text come.

 

I have embed them with in english or other languages.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.