ExeOutput - Problem with mb_convert_encoding function

Sancaro1957

New member
Hello, I'm having problems at runtime when the program tries to use the mb_convert_encoding function.
The program inform:

Server Error: HTTP/1.0 500 Internal Server Error
PHP Fatal error: Call to undefined function mb_convert_encoding() in C:\BYR\xampp\apache\bin\Data\login.php on line 86

The line code involved:
$_SESSION["usu_nombre"] = mb_convert_encoding($fila["emp_nombre"]." - ".$fila["ref_descripcion"],"UTF-8");

I has modify the php.ini file in ExeOutput compiler in such way:
1778162429846.webp

Thank you in advance
 
Glad you sorted it out, and thanks for posting the resolution , this helps the next person who hits the same symptom.

For anyone arriving on this thread later: PHP's mbstring extension (which provides mb_convert_encoding, mb_strlen, mb_substr etc.) is disabled by default in ExeOutput for PHP's bundled PHP runtime to keep the compiled EXE small and the startup fast. To enable it, in your ExeOutput project go to:

PHP Settings → Activated Extensions

and tick the mbstring entry, then rebuild. The function is then available at runtime inside your compiled EXE.

Same applies to other commonly-needed extensions that are off by default (mysqli, curl, gd, openssl, intl, zip, etc.), tick them in the same panel as needed by your PHP code.
 
Back
Top