מדריך PHP קודם הבא הערה: הערה: If you use database with PHP, it is recommended that you use the same character encoding for both database and internal encoding for ease of use and better performance. You must enable module with configure script. The following configure options are related to mbstring module. Enable mbstring Enable mbstring functions. דוגמה 1. ;; Disable HTTP Input conversion mbstring.http_input = pass הערה: דוגמה 2. php.ini setting example דוגמה 3. Currently, the following character encoding is supported by mbstring Currently, the following character encoding is supported by mbstring module. Caracter encoding may be specified for mbstring functions 'encoding parameter. הערה: "Supported character encoding" does not mean that it works as internal character code. mbstring.detect_order defines default character code detection order. דוגמה 4. php.ini setting example ;; Set default internal encoding;; Note: Make sure to use character encoding works with PHP mbstring.internal_encoding = UTF-8; Set internal encoding to UTF-8;; Set default HTTP input character encoding;; Note: דוגמה 5. php.ini setting for EUC-JP users ;; Disable Output Buffering output_buffering = Off;; Set HTTP header charset default_charset = EUC-JP;; Set HTTP input encoding conversion to auto mbstring.http_input = auto;; Convert HTTP output to EUC-JP mbstring.http_output = EUC-JP;; Set internal encoding to EUC-JP mbstring.internal_encoding = EUC-JP;; Do not print invalid characters mbstring.substitute_character = none דוגמה 6. php.ini setting for SJIS users ;; Enable Output Buffering output_buffering = On;; Set mb_output_handler to enable output conversion output_handler = mb_output_handler;; Set HTTP header charset default_charset = Shift_JIS;; Set http input encoding conversion to auto mbstring.http_input = auto;; Convert to SJIS mbstring.http_output = SJIS;; Set internal encoding to EUC-JP mbstring.internal_encoding = EUC-JP;; Do not print invalid characters mbstring.substitute_character = none טבלה 1. קודם ראשי הבא למעלה mb_convert_encoding