php protection

app-user

Member
I'm creating a test script and enabling protection — the text stops displaying correctly.

I tried both UTF-8 and UTF-8 without BOM for the file encoding.

<?php
header('Content-Type: text/html; charset=UTF-8');
echo "Привет! Это проверка кодировки UTF-8.";
?>

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
Any new on this? I suffer the very same issue with latin characters (version 2024.0), as soon as i turn on internal protection, it breaks the encoding in scripts that works perfectly before this security setting (UTF-8) without BOM
 
If you have a very simple sample that would let us reproduce the issue, please provide it, as we're not able to get this problem here.
 
Yes, it is easy, with version 2024.0 save the following code as index.php (for example) , using encoding: utf-8 without BOM...


<?php
header('Content-Type: text/html; charset=UTF-8');
?>
<!DOCTYPE html>
<html lang="es" dir="ltr">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Prueba de codificación</title>
</head>
<body>
<h1>El niño se cayó del monopatín</h1>
<br>
</body>
</html>


Then, in ExeOutput for PHP , at FILE MANAGER, add the file, right click over it, in properties check "Unpack the file to virtual memory at startup..." only, and under the Security tab select "Encode PHP file with internal protection" only. Then, at SECURITY > PHP PROTECTION check "Encode Marked PHP files with internal protection system", compile it and the output text will be:


El niño se cayó del monopatÃn​


...as soon as you go back to ExeOutput and uncheck the "internal protection" (both on File Manager or in Security, then recompile, you will see the correct text (without encoding issues). If your need the exop file or any other help from my side, just tell me.
 
Thank you for your reply and the instructions.
Followed them but in ExeOutput 2025 it's working as expected:

1763480407773.webp

Make sure that the PHP source file is encoded as UTF-8: in NotePad++, this command:

1763480460934.webp
 
The source file is encoded in UTF-8. Just rechecked it with notepad++ , as you asked.

Can you check with ExeOutput 2024.0? It is the version i used. Just to ensure that the problem was fixed in the latest version.

Source and exop attached. Thanks.
 

Attachments

Back
Top