From the above image im getting ? symbols in option in database there is a chareter present how can i resolve this issue..  I have a header like this  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;   And i am looking for permanent solution this is my code:  and when print the variable it is coming like this:console.log(getContact);        function get_question_detail(q_id){     $("#all_option").html("");     var temp_ques = sessionStorage.getItem(q_id);     if (temp_ques){     var getContact = JSON.parse(temp_ques);      for (var j = 1; j &lt;= ans_option_count; j++) {     var temp_var = "sr_no" + j;     var full_div = '&lt;div class="answer_option"&gt;&lt;input type="radio" name="ans_option" value="' + j + '"  class="validate[required]"  /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;' + getContact['option'][temp_var] + '';     $("#all_option").append(full_div);     // console.log(full_div);     }
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.
67340
Questions like:   ♦ ♦-should-discriminate-more-when-bumping-unanswered-questions ≠-users-who-want-to-write-good-posts   well, you can see there.  The diamond (and other problematic Unicode characters) in the title breaks the automatic prettification of internal question links.  This becomes a bit more of an issue when one wants to link to an answer.  For example ♦-break-the-automatic-hyperlink-parser/242572#242572 should link to Martijn's answer, but, it doesn't (tangent, but a different issue is that  which is the share link doesn't auto-prettify unless the userid part is removed - one keeps having to manually remove things to get the auto prettify to engage).  If one looks at the html generated for  for the title and the url linked in the &lt;h1&gt; of the page, we get:  &lt;title&gt;Users who can&amp;#39;t write good posts ≠ users who want to write good posts - Meta Stack Exchange&lt;/title&gt;     &lt;h1 itemprop="name"&gt; &lt;a href="/questions/238644/users-who-cant-write-good-posts-%e2%89%a0-users-who-want-to-write-good-posts" class="question-hyperlink"&gt;Users who can&amp;#39;t write good posts ≠ users who want to write good posts&lt;/a&gt; &lt;/h1&gt;   And while that's a long link title, I will point out that the quote as part of the word "can't" was removed from the slug.  The bug is that this should be done for other characters too.
80715
In javascript, what is the best way to parse an INT from a string which starts with a letter (such as "test[123]")?  I need something that will work for the example below.  My JS:  $(document).ready(function() {      $(':input').change( function() {         id = parseInt($(this).attr("id"));  //fails for the data below         alert(id);     }); }   My generated HTML:  &lt;select id="attribute[123]"&gt; &lt;!-- various options --&gt; &lt;/select&gt; &lt;select id="attribute[456]"&gt; &lt;!-- various options --&gt; &lt;/select&gt;   Thank you!
70595
My site working very effectively on my localhost, but when I move the working site's all folders and files to Live Server i.e to cPanel, Its only display unexpected symbols that are given below.  ‹Ý0M™å‘/ðë¥R!ŒH6L¨½¯Tl³/)4-/`4A‹.iÌ$³·†1‚š–b·Ê¹¢jZ-"¯i!¶=Ç¡Wô¶Ö¢c.kžu›pW:W_R–ÚF½¶™Õj!jWÒj5ƒ°µöÃb‚¹hB:=ú…4Íçÿ Ÿ&gt;ÿ’ubK-NeýS¥#™Ú÷&lt;‘FªR%•ûöËÝÍÍ—õm{£òùÅ&lt;CR€u"Ôµ±/”hŒJ¨w}F{¼”Zï¦‘‡oýùZ,Oä¿G{ð&amp;i:¯y`ðŠkë#o¥ F`xMû&amp;©Lh¥26ˆÊaäÁ(•¤l¬æ š×+8]r¯Bš%êðÐ¸¢Zœ%&lt;_I6Ðq¤*dÏÔ¡zssSyAþƒT²É¶iDƒ¡âž™r t%K,¡¨²,i©LLùzxI{¨å‘ÀŸêŸG°²ƒ#ˆÔ    ¬Ë$KÔk¾„­÷À;ÈB;ß^¬gå‘%éZÀ£kÒOX·™sß—“fêIùk—†&lt;6©{[õzuÃüçà5¸W} µ—Em«(½‚öWEm·^¯„ÍŠv²Ï˜ªS6“„*°iY2qh·HÈ|NÁõÕúG§¤HšëÖHñµ’):à­R âÈ¡–}j.•¬†E»êv×µ@1G³”Êb“–ÈêÂ¶N€Ê]™’q'”±P‹ØM¹ø‘¦1Ãº‰+n;Øûxm%ø}ð0úG,_VŒ6q;zVLsÌ½k–Ô6j¯1ç]Îß`5å•pˆl›Â½ÆkàUÏÜ'¬00Ø½~öY‰¬©Ëœ”“z´XRVŽ6?õÊÅ•“€È&amp;aEaµè!Î‹c¹}ËìóˆÉL%j[®HÓ]Htd¦ôÜ®/wI†,qÖ¥i F®*kèèþÕøDqºÙW3ß`þ©êˆ.Úw=Y.½fž2ëÌKZÖñ¦GÉ&lt;Ÿˆ9$Ø¡pù#gk&gt; W%!:Žçèt©#ÆÔ"ƒƒU~–¸’¿šµ­ÚVù&lt;±"ä"òXNas•øý$i€¨3Õ¬·&gt;i¦_Õ6WÅõrQËªåQ‡C%œÙyÙ)…lÒòºmŽ™OÅÉ”s¼•Ÿ“ìý|ò÷ÑC'ÔÚwùõ'Ygçô8Ú&lt;áZ›í_¯ò´J- .xwø„*¾‹…œ€õ‘â;°`Ð|Ê£íí» ‡ƒþmÛql»ÕøñÓÁáþåþ'ÇiaãÚÕ_õ´‹üõC³OI¦”I„~µ0ÑpFUßÚ³ÚŽUµb(Ÿ%¬Ëo¡ê¸ý`FìBUX{_--ô#uGG‰kA÷ÎÇƒóð ÷ã«wÿ•þ&gt;è½ ¶w½_Þ~&lt;Œ/6?ü1ŒÞ}8í¥ÁÕ[  °WQã:l"ko£:Þ–mà¥Žbç-µe;¦nÑúoã´s÷ÒßÝÚS›Ý`±KÆ–K³7ª»Éd©vO³?´ó ¢=‡X–Ü»Ï‡›ðÃíŽ¹4 %‡:…Ò,†öÄj0üL;Ã‡€—ÙRà…Z ªì@XXÍ·ª…\¹âM¢¬=™4Êž3¨HúÝ1j”Ì[8°HÒÍ7Q­=‘S{àR\‰“Û.ò`í"v/âÍÌt’k\:_• o²WóI%¢ÚÓy©qôFö1‘GJÕù£v)´`}fùv‘j¥ˆî   ™e|ÚÙŸ{BëtN{,±sÈ}KÞŸÌƒ˜9?È&gt;÷ðU Ó!”Ù&amp;lýDK¿\Ù‹DÄòÉrŒ¼wjÿžÊï#:£|R¿[ý\hD¼§ùö Ûs]èŒ­æeŽ`s‹À¶4tŠ&lt;ì¾6:òÉQwä‰~€ÿ²ž¿áyQKÅpümÓfLå'Ù7x†¬¼¨yœf«á+Ûp#%ºÙ%Ä [·@ÿ /¡ôØoY!ûŽ¿ð)Ià¦øÚŽp¿iåXD?‹lZƒµ(ˆG4°Ç›•&amp;«uÐ"¶¬9seN­   UP’Cú¸§Ë˜FÅÞ Vk#\ë÷£“äŸÿìC7î³†ß‰i79ó—S#%Æ Ê––r¬nÊ”Œ",–Ð J5)­ÓViavy"a· ’Ï|â'"öÅY§ÙR„¹ˆ;" 8.Ï,—©ob ,ãÓð“Õº\ãú…•É”ŽíP«zmŽ$*ÈÌábÈîZÑ—}FD4‡Ï äß­Ó4!X¼×"(´š0†úÄÏR€×È‚f…ûOhŒc«u†Ÿ»&amp;o¶ô¿ø,åÐÎq!‚²&amp;£ÂÖkhÏÜ½¬CŸ7=e§_‡Õ*McÑ¢AÌÚ5˜Âl}cqáæ–5¬ÍPÚû¤dó` ¢žQü37öqëâòã#²rHÞì_¼{zBÞœž“w§¿5œx;S•¢˜LÞó ivtà`AŒ(f[zI–IxžLÃßÌ+õ9ÆªsYF=›£;%ý¬«´d   §5¼µ¡a  Má˜Ð!   „ˆg…ý ~Çc;/³Pã-+‹guƒƒ Ï@ë8]lxº7Ì Ç  ë–™”…{–«ÝÈÊTm~¯Éz¹Y‡c˜Îm6­Í­úœcgƒ….øÇÉ.oºh8šØLM8F3¬ÖÑ¨§Ì}F„¾8hÏVÔÏ¥Õ×ÎÊ¥Q„âåÔ¬ˆõ§ýó÷ót]J&amp;¤¡-K%þ.Üá!œÓî“NÌ_u9&gt;·É!í3ù€Î†9$Ï?Ò—·§¾¸PÍ7¨ùP%…¸B¹â@ïÈf”Ev]ˆ   ÈduYYÃ!^gø¾ß©ß%å´=˜fúcšÌ&amp;Ü{“Êö&amp;Ø_‹mj´/¹ø«iáÿÑÍéUi) Ì-LpüÂò‹i´–fÇyk‹­ñéãRZ`RùË¡¤=]éB›g°K­»©·¼t1œå6Æáf³ùÀe5Ó°vfÖtÙ¬&amp;Oókw»¸g6ª3Œõ¹wžöì×‚ª•ûð9æõ×¾#ƒùHô\,s.ÇKÛÚ]æ¶5Ó=(0ö8ÓË/’¦.Ë²_áÖW0w;¼ïnŸû‘×É1lI×Ççwïÿ¼&amp;ºí¦RD]æê© ôóÜ~o8K`UàwüîŸÑüâÄ÷”„ åÿ¹c¼IÂb&amp;žÍðVÝv…POðšcc³dÿ†FÄsB[¼…Û|l3ÚÆß&gt;7f2ÏiD'-ñí‚¥SH‚ÂaÊüÜšÁq!ÓÌ¾,16S¦9I7)‰S®Ìºb”Kç §¯ŠÜ`œðõ†¶ÄgßxYˆ9YÝD.ò¦±Äé\ ÄPÚPó¹¾ˆ±Z—ØBþ†ñ/ä h¿/¾¬+ÀÎ_ ‚kPiÙ±¸7Ä+&amp;ÓžÑ8×½äL÷N¤9—°Ò¼_Ö§–Y‹mÏ0õÙ¶¸1f‹*b7šÈ4ô»güS+x;Añíû(NÕQHy°’¥.ÞœºŒ(ADš|c0|cB!lëN‹,oÖ£‡½ööŸÂ¶Iþ'uÀƒ$a‘g±)sY„j9ñ  ™ê*RùJ FTÄB”Çbe{}šHŒ±&gt;\¾±w,­æ1]ëñà’C¢K˜Ã³ñ^¿&amp;E¯3i_žkXYÏ‘þŽïD:Á?ö’0¿¸¿ìs&lt;1#z(äÝ5«õïÅu1   °YŽVTz`„‘ÍþŠ)hê›uÉÿ_ÌÅ…ô´ÓÃÜÜÆæŽ5Æâ##î\4fí”©ÂDÀ!ªD7o0”E\Ð½MY™L&gt;ÞiáísßgQŽGvÜ”~ö‹£†?&lt;¦    lÀ'[gþßøûm/¾Ýýø×ôìXþöúUxö·íŸÅîéÉka„¸ƒJ  ÿÈx:Úx:zÀvI ›ZÚ\×™µY&gt;ÜóLÄ-žˆ‡ÙMÊ?ÿ›Œÿ‰©r ³v¶!7|ªïKðdý/oþŽ¿;K   I also change the permissions of index.php but nothing works for me. Also my index.php works, when I write die('test') in index.php it displays "test" on the page. I think the problem is in these two lines of code in index.php,  drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); menu_execute_active_handler();    If any one know how to fix this error, Please let me know I'll be very thankful to all of you. Thanks in Advance...
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?
47610
This has been confusing me for some time. With the advent of UTF-8 as the de-facto standard in web development I'm not sure in which situations I'm supposed to use the HTML entities and for which ones should I just use the UTF-8 character. For example,   em dash (–, &amp;emdash;) ampersand (&amp;, &amp;amp;) 3/4 fraction (¾, &amp;frac34;)   Please do shed light on this issue. It will be appreciated.
91776
I have created a shortcode that retrives and displays a form.The content of the attribute in HTML.   function check_my_login( $atts)     {          return '&lt;form action="" name="" method="post" enctype="multipart/form-data"&gt;                &lt;div class="form-group"&gt;                     &lt;label for="description"&gt;Project Description&lt;/label&gt;                     &lt;textarea name="p_description" placeholder="Project Description" class="form-control"&gt;&lt;?php if (isset($_POST['p_description']) &amp;&amp; $_POST['p_description'] != '') echo $_POST['p_description'] ?&gt;&lt;/textarea&gt;                 &lt;/div&gt;                  &lt;div class="form-group"&gt;                     &lt;label&gt;Project Attachment&lt;/label&gt;                     &lt;input type="file" name="p_attachment"&gt;                 &lt;/div&gt; &lt;/form&gt;';     }     add_shortcode( 'kentaUser', 'check_my_login' );   Now use this shortcode inside the Post/page.   Like this    &lt;div class='manage_page'&gt;[kentaUser]&lt;/div&gt;  But my shortcode content display out side the div.Display upper side in post/page content.  &lt;div class='manage_page'&gt;&lt;/div&gt;    Any one short out this problem.
20942
There are several Unicode charactes I'm just seeing as boxes. This happens in Chrome only. The Character Encoding is set to UTF-8, but Autodetection doesn't help.   Example: [⁠]  You will only see two square brackets, but actually there is the Unicode Character  in between. It's a zero-width non-breaking space.  I also put together a little . I can't see the World Joiner character, but I can see the Hair Space. (And by seeing it I actually mean I don't see it. You see?)  This also happens when people post some new style emoticons etc.  How can I fix this?  Update:  This happens everywhere (Twitter, Facebook, you name it). I'm not using special fonts or have changed something font-related on my system (Windows 7, 64 bit). Am I wrong assuming this should just work?  Update 2:  This drives me insane. There are still so many characters that are not displaying.  Example (wrapped gift): 🎁    As you can see, Chrome is not displaying the character by default. Only when I explicitly set the font to Segoe UI Symbol, it does. Why is Chrome not using the font as a fallback automatically?  How can I make Chrome recognize the Segoe UI Symbol font?
43114
Whenever I'm at the console login, I press up arrow intentionally to see the previously typed commands. But I see this ^[[A.  But when I press Ctrl Alt Print Screen Scroll Lock Pause Break Page Up Page Down Win keys doesn't echo any characters.  What might be the reason behind?  Does ^[[A sort of characters imply anything?
10708
Some questions, for example    Instead of using a correct URL, such as  http://meta.stackexchange.com/questions/79543/٩●̮̮̃-̃۶-forbid-unicode   are using  https://superuser.com/questions/516363/what-is-the-��-character   What is causing this behavior?
73925
Earlier today a question was asked regarding .  The top answer, at time of writing, suggests in PHP just using htmlspecialchars and mysql_real_escape_string.   My question is: Is this always enough? Is there more we should know? Where do these functions break down?
109037
I'm completing a problem set, one problem for which I literally have no idea what to do on. The graders would prefer to have a physical copy of the problem so I thought it best to include the ¯\_(ツ)_/¯ emoji as my answer, instead of something like "Dunno" or "No idea."  Option #1 is to include an image.  Beyond that I actually don't understand how this emoji works. The middle character is Japanese kana "tsu" and proves problematic - TeX wants it in math mode then renders "?" when it is.
34496
I have the following html code:   &lt;h3 id="headerid"&gt;&lt;span onclick="expandCollapse('headerid')"&gt;&amp;uArr;&lt;/span&gt;Header title&lt;/h3&gt;   I would like to toggle between up arrow and down arrow each time the user clicks the span tag.   function expandCollapse(id) {        var arrow = $("#"+id+" span").html(); // I have tried with .text() too     if(arrow == "&amp;dArr;") {              $("#"+id+" span").html("&amp;uArr;");                    } else {                 $("#"+id+" span").html("&amp;dArr;");                    } }   My function is going always the else path. If I make a javacript:alert of arrow variable I am getting the html entity represented as an arrow. How can I tell jQuery to interpret the  arrow variable as a string and not as html.
67449
I have a view that has three expose filters (Manufacturer, Type, Model), three options list (term reference to Printer vocabulary) .  Vocabulary: Printer (3 levels)   -- HP            ---- xxx      ------ xxxx   -- Apple ---- xxxx ------ xxxxxx -- Dell ---- xxxx ------- xxxxx -- ... -- ... (thousands of terms)   Since Form API AJAX doesn't work on views expose form, I am unable to make the them dependent select for exposed form fields. So I used jQuery to make the exposed form fields "dependent select / cascading select".    Basically, I empty all the options in views_exposed_form_alter() firstly:  $form['manufacturer_id']['#options'] = $form['type_id']['#options'] = $form['model_id']['#options'] = array();   then populate the option lists with my jQuery code accordingly.  However I get "An illegal choice has been detected." on page load, and form submit.  Form submission is prevented due to Drupal form validation mechanism .    It's the form validation detect the options generated by jQuery are not come with the original form data, as I removed the options in form alter. Value of a select box is not present in its defined options .  So I tried to remove form validation in form alter as:  unset($form['#validate']);   still doesn't work, the illegal choice error remains.  ============ UPDATED =================  Inspired by @kiamlaluno 's answer below, the only solution I came up is hack/patch the core.  Here is what I done:  Edited /includes/form.inc : (line 2014)    I removed the code:  $element['#needs_validation'] = TRUE;   and added:  // if not these fields, mark for validation as usual.  // so if are these fields, validation will be passed.   if ($element['#name'] != 'manufacturer_id'  &amp;&amp;      $element['#name'] != 'type_id'          &amp;&amp;      $element['#name'] != 'model_id' ) {    $element['#needs_validation'] = TRUE; }   It works, the exposed form select option bypassed the validation.   But my solution is very ugly which modified the core.   I wonder if there is any other solution without touching the core? How can I bypass the validation of these exposed form fields?  Thanks!
42868
I have a WCF ATOM Feed Service using the WCF REST Toolkit with the following UriTemplate  [WebGet(UriTemplate = "{category}/?numItems={numItems}")] public Atom10FeedFormatter GetFeedByCategory(string category, int numItems)   Most cases work, the edge is when I try to load the feed based on the category with a # sign.  I am loading courses for category='C#' and all the service ever sees is 'C'.  Both of these links are doing that. Does anyone know if there is some special way to escape this character in for WCF?
66745
I'm using the Message module on Drupal 7.  For Replacement tokens, the help text says:     A comma-separated list of replacement tokens, e.g. %title or !url, of   which the message text makes use of. Each replacement token has to   start with one of the special characters "@", "%" or "!". This   character controls the sanitization method used, analogously to the   t() function.   What's the difference between %, !, and @?  Are there standards about when I should use each symbol?
89206
I am getting error:     The argument 2 of the "JSON_VALUE or JSON_QUERY" must be a string literal   ...while trying to pass variable as parameter to JSON_QUERY function. Please help me to resolve it.  DECLARE @cnt INT = 1; DECLARE @cnt_total INT = 1; DECLARE @json NVARCHAR(MAX); DECLARE @json1 NVARCHAR(MAX); declare @str  VARCHAR(200);  WHILE @cnt &lt;= 10 BEGIN     set @str = '$.Seasons[0].Products['+convert(varchar,@cnt)+'].ProductChannels';     set @str = char(39) +@str+ char(39);     PRINT @STR     select @json = json_query(jfile,@STR) from Import.tstjson; --MORE CODE         SET @cnt = @cnt + 1; END   Sample data:  {   "Seasons": [     {       "Season": "12321231",       "Products": [         {           "ProductId": "211",           "ProductChannels": [             {               "ChannelId": 1,               "WeekQuantities": []             }           ],           "ccc": 3,           "Tttt": 4         }       ]     }   ] }