Jump to content

get and print utf8 into a file


divinequran

Recommended Posts

Hello,
 
I want to write some unicode "இயற்கை" values into a file in its real format like "இயற"
 
Actually the browser prints the charactes in correct format, but I want it to be same in view source or browser source(இயற) but now the he browser displays it as (இயற்கை)
 
$text = "இயற்கை";
$rest = utf8_decode($text);
echo "$rest";
 
How to achieve this?
Decode

 

இயற்கை
Link to comment
https://forums.phpfreaks.com/topic/289371-get-and-print-utf8-into-a-file/
Share on other sites

Thanks for reply,

 

Yes they are tamil characters, The characters are encoded and the value is posted. The DB was not constructed earlier to accept it as itself of the characters. The browser itself decodes the value.

 

html_entity_decode(); dosent work. Any other workaround to achieve this with generally available functions.

html_entity_decode(); dosent work.

 

It works perfectly. If you're having trouble with the function, then you're not using it correctly, or there's some other issue with your application.

 

We might be able to help you, but then you have to give us information. What's your code? What's the problem? Remember that we don't have access to your server, so you need to actually tell us what's going on.

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.