Jump to content

Recommended Posts

Hello,

I am trying to get an arab string $html = 'ل مسؤول أميركي رفيع إن الرئيس الأميركي جورج بوش سيحث رئي '; to view on a webpage. If i put the string directly in the html it shows correctly. but when getting it from a variable i just get a string witgh question marks ?????? ??? ????.


I also changed some settings in my php.ini but no luck either. does anybody know's how i can make this happen?

i noticed that it workes at this server.

thanks in advance.

below the php.ini settings
[code]
; language for internal character representation.
mbstring.language        = Neutral

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
mbstring.internal_encoding    = UTF-8

; http input encoding.
mbstring.http_input = pass
mbstring.http_input = auto
mbstring.http_input = UTF-8
mbstring.http_input = UTF-8, SJIS, EUC-JP

mbstring.encoding_translation = On


; http output encoding. mb_output_handler must be
; registered as output buffer to function
mbstring.http_output = pass
mbstring.http_output = UTF-8

; enable automatic encoding translation accoding to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
mbstring.encoding_translation = On

; automatic encoding detection order.
; auto means
mbstring.detect_order = auto
mbstring.detect_order = ASCII, UTF-8, SJIS, EUC-JP, JIS
[/code]

I noticed after viewing the source of my post a came across these encode arab letters.

ل مسؤول أميركي رفي

with what function can i do this?

Thanks
Link to comment
https://forums.phpfreaks.com/topic/9998-php-ini-using-arab-from-mysqlvariable/
Share on other sites

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.