My php Web application not supporting Arabic language. I want to add data from a form and display the table in browser. When I type Arabic letters it store some other characters(Ø£Ø®Ø¨Ø§Ø± Ø£Ø®Ø¨Ø§Ø) and display as ????? in browser. But the same application support Arabic in my local server localhost. How to solve this please help.
326
I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.
106347
I have a PHP/AJAX/MYSQL chat application. I want to add video chatting to my application. How can I create live video streaming to be used for live video conferences/chatting in a PHP application. What are the key-terms I need to know if I wanted to build such a system? Is it a good idea in the first place to use PHP? Is there something I'm not thinking about? What other languages can I use, perhaps in conjunction with PHP?
52656
How can I use/display characters like ♥, ♦, ♣, or ♠ in Java/Eclipse?  When I try to use them directly, e.g. in the source code, Eclipse cannot save the file.  What can I do?  Edit: How can I find the unicode escape sequence?
58463
Does anyone know of an easy way to escape HTML from strings in ?  I need to be able to pass an arbitrary string and have it properly escaped for display in an HTML page (preventing JavaScript/HTML injection attacks).  I'm sure it's possible to extend jQuery to do this, but I don't know enough about the framework at the moment to accomplish this.
123297
I have the following code  &lt;?php if ($handle = opendir('C:/xampp/htdocs/movies')) {     while (false !== ($file = readdir($handle))) {         if ($file != "." &amp;&amp; $file != "..") {             echo $file."&lt;br /&gt;\n";         }     }     closedir($handle); } ?&gt;   When it does have mb language such as japanese, it doesn't display properly instead it display like kyuukyoku Choujin R ?????~? rather then kyuukyoku Choujin R 究極超人あ～る  Anyway to make it display the correct name or make it still download-able by others?  Thanks for helping me :)
90867
I'm doing some web scraping and sites frequently use HTML entities to represent non ascii characters. Does Python have a utility that takes a string with HTML entities and returns a unicode type?  For example:  I get back:  &amp;#x01ce;   which represents an "ǎ" with a tone mark.  In binary, this is represented as the 16 bit 01ce.  I want to convert the html entity into the value  u'\u01ce'
66942
I'm trying to include Arabic text in an English document (I'm a new latex user), but I can't seem to get any Arabic text to render at all, using xelatex or any kind of tex. I'm using texshop 3.51 on a mac. I can't get this basic example to work, it just displays question marks in the output pdf.  \documentclass[12pt]{article} \usepackage[utf]{arabxetex} \newfontfamily\arabicfont[Script=Arabic]{Amiri} \begin{document} \begin{arab}[voc] وَهَذِهِ فِقرَةٌ بِالعَرَبِيَة مَعَ كَلِمَة اِنكلِيزِيَة \end{arab} \end{document}     I've downloaded Amiri (and also Scheherazade and Lateef) into Fontbook, and they show up if I go Source->Font->Show Fonts in texshop. If I remove the Amiri part it still doesn't work.   Is there anything I can do? I've looked at other links here, like  and  but I can't even render any of those examples.   Thank you so much for any help! I'll love you forever if I can get this to work.
17694
I can read the MySQL documentation and it's pretty clear. But, how does one decide which character set to use? On what data does collation have an effect?  I'm asking for an explanation of the two and how to choose them.
117303
I want to write in Spanish without having to keep Charmap open! How do I type the Spanish inverted question and exclamation marks?  ¡Quiero escribir en Castellano sin usar el charmap! ¿Cómo escribo los signos de interrogación y exclamación?   How do I type these characters in Emacs? How do I type them in any general input box in Windows?
49634
I'm too bored of seeing sites like Google and such show up in my native language, I would rather like them to be in English. Yet, I have to explicitly change the URL to .com and en and that kind of parameters in order for them to show up in English. Can I somehow force this?  So, how is Google configured?  However, it is set to English on the site itself so it has to be my browser:    Then, how does my browser land up on non-english pages, like Google?  It usually shows up in non-English when I'm performing a search, which uses:  {google:baseURL}search?{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}{google:searchFieldtrialParameter}{google:instantFieldTrialGroupParameter}sourceid=chrome&amp;ie={inputEncoding}&amp;q=%s   When performing a search, it fills these variables in with non-english values.  How can I tell my browser to fill these in with the English values?  My Google Chrome options give preference to English:
15556
I am afraid that listing doesn't support javascript.  \begin{lstlisting}[language=javascript] ... \end{lstlisting}   What am I doing wrong?
14958
Okay so a continuation from , where you experts intro'd me to , which can basically execute PHP within a Windows XP environment.  So now I've got it installed, but the tray icon forever shows YELLOW, and when I visit any PHP page in my browser, it just shows me the PHP source!  Also, when I visit "" in IE7 it gives me a 404 Not Found, FF3 just shows a blank page.    BTW I've tried "Restart All Services" and restarting my machine, but it still won't work.  Any ideas? Any of you had this problem and solved it? Please help me here, I'm desperate to execute PHP client-side and I'm just reverting to testing on-server for now!
94625
Can we get for example only the last character of an arabic word written in a red color.  I use the arabi package with pdfLatex
74971
:    The Arabic characters are displayed within the time. The expected behaviour is that the entire user name is displayed, followed by the time.   App Version: 1.6.6.2 Device: iPhone 6 OS Version: Version 10.3.3 (Build 14G60)
38513
Several of my site's pages are appearing in search results with [Translate this page] next to it. When I click that it takes me to Google Translate and translates my page "from Catalan to English".  The pages are in English but have a couple of foreign words (actually Japanese romanisations, not Catalan) that appear to be tripping Google up.  A few weeks ago I set the html tag to &lt;html lang="en"&gt; which from research appears to be the best method to specify the language of a document. Google has cached the pages with this attribute but it is still offering to translate.  More research led me to a "notranslate" attribute which prevents translation entirely: &lt;html lang="en" class="notranslate"&gt;. The problem now is users cannot translate from English to their desired language!  Are there any other solutions that force Google to parse my site as English only?
40769
I have just done a clean install of SQL Server 2017 (CU15) on two of my servers, and have noticed that the displayed language for all my logins shows ARABIC instead of '' or 'English'.  Here is the server settings    Here is a login setting    When I run the following SQL code, I get 'us_english' for the default_language_name:  SELECT type_desc,         default_database_name,         default_language_name, FROM master.sys.server_principals WHERE name = 'Cerberus'  | type_desc        | default_database_name    | default_language_name | +------------------+--------------------------+-----------------------+ | WINDOWS_LOGIN    | master                   | us_english            |   Did I mess something up on installation?  How do I correct this?
115935
I have a form with a textarea. Users enter a block of text which is stored in a database.  Occasionally a user will paste text from Word containing smart quotes or emdashes. Those characters appear in the database as: â€“, â€™, â€œ ,â€  What function should I call on the input string to convert smart quotes to regular quotes and emdashes to regular dashes?   I am working in PHP.  Update: Thanks for all of the great responses so far. The page on Joel's site about encodings is very informative:   Some notes on my environment:  The MySQL database is using UTF-8 encoding. Likewise, the HTML pages that display the content are using UTF-8 (Update:) by explicitly setting the meta content-type.  On those pages the smart quotes and emdashes appear as a diamond with question mark.  Solution:  Thanks again for the responses. The solution was twofold:   Make sure the database and HTML files were explicitly set to use UTF-8 encoding. Use htmlspecialchars() instead of htmlentities().