Php Encoding

Hello,

Everyone I need a simple PHP Script ( 1 files script ) . I don’t need any GUI or anything.

The Script should do the following:

1. I set a string in a variable.
2. It should encode the string ( Preferably in CP1251 or any other encoding if you believe it will work )
3. The output after encoding should be echo to the screen.

Both the echo of Input and Output should be 100% same in the web browser however when I look into the source code of the page it should show the encoded characters in the source code.

For example:
Input: are
Output on browser: are
Output page source code: аre

Input: the
Output on browser: the
Output page source code: thе

Regards

Leave a Reply

Your email address will not be published. Required fields are marked *