Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.