Questions tagged [utf-8]

UTF-8 is a character encoding that describes each Unicode code point using a byte sequence of one to four bytes. It is backwards-compatible with ASCII while still supporting representation of all Unicode code points.

UTF-8 is a that can describe the set of code points in byte sequences of one to four bytes.

UTF-8 is the most widely used character encoding, and is recommended for use on the Internet. It is the standard character encoding on and other recent -like operating systems. It was designed to be backwards-compatible with while still supporting representation of all Unicode code points.

The algorithm for encoding code points in UTF-8 is described in RFC 3629.

Related tags

22178 questions
244
votes
8 answers

HTML encoding issues - "Â" character showing up instead of " "

I've got a legacy app just starting to misbehave, for whatever reason I'm not sure. It generates a bunch of HTML that gets turned into PDF reports by ActivePDF. The process works like this: Pull an HTML template from a DB with tokens in it to be…
Cᴏʀʏ
  • 105,112
  • 20
  • 162
  • 194
239
votes
13 answers

How to convert a string to utf-8 in Python

I have a browser which sends utf-8 characters to my Python server, but when I retrieve it from the query string, the encoding that Python returns is ASCII. How can I convert the plain string to utf-8? NOTE: The string passed from the web is already…
Bin Chen
  • 61,507
  • 53
  • 142
  • 183
237
votes
9 answers

What's the difference between Unicode and UTF-8?

Consider: Is it true that unicode=utf16? Many are saying Unicode is a standard, not an encoding, but most editors support save as Unicode encoding actually.
ollydbg
  • 3,475
  • 7
  • 28
  • 29
237
votes
15 answers

Do I really need to encode '&' as '&'?

I'm using an '&' symbol with HTML5 and UTF-8 in my site's . Google shows the ampersand fine on its SERPs, as do all the browsers in their titles. http://validator.w3.org is giving me this: & did not start a character reference. (& probably…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/validation" class="post-tag grid--cell" title="show questions tagged 'validation'" rel="tag">validation</a> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</a> <a href="../../questions/tagged/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> <a href="../../questions/tagged/character-encoding" class="post-tag grid--cell" title="show questions tagged 'character-encoding'" rel="tag">character-encoding</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 16 '10 at 13:09">asked Aug 16 '10 at 13:09</time> <a href="../../users/289666/haroldo" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/289666.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Haroldo" /> </a> <div class="s-user-card--info"> <a href="../../users/289666/haroldo" class="s-user-card--link">Haroldo</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">36,607</li> <li class="s-award-bling s-award-bling__gold" title="46 gold badges">46</li> <li class="s-award-bling s-award-bling__silver" title="127 silver badges">127</li> <li class="s-award-bling s-award-bling__bronze" title="169 bronze badges">169</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-30106476"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>231</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>14</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/30106476/using-javascript-s-atob-to-decode-base64-doesn-t-properly-decode-utf-8-strings" class="question-hyperlink">Using Javascript's atob to decode base64 doesn't properly decode utf-8 strings</a></h3> <div class="excerpt">I'm using the Javascript window.atob() function to decode a base64-encoded string (specifically the base64-encoded content from the GitHub API). Problem is I'm getting ASCII-encoded characters back (like ⢠instead of ™). How can I properly handle…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javascript" class="post-tag grid--cell" title="show questions tagged 'javascript'" rel="tag">javascript</a> <a href="../../questions/tagged/encoding" class="post-tag grid--cell" title="show questions tagged 'encoding'" rel="tag">encoding</a> <a href="../../questions/tagged/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 07 '15 at 16:12">asked May 07 '15 at 16:12</time> <a href="../../users/1214800/brandonscript" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1214800.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="brandonscript" /> </a> <div class="s-user-card--info"> <a href="../../users/1214800/brandonscript" class="s-user-card--link">brandonscript</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">68,675</li> <li class="s-award-bling s-award-bling__gold" title="32 gold badges">32</li> <li class="s-award-bling s-award-bling__silver" title="163 silver badges">163</li> <li class="s-award-bling s-award-bling__bronze" title="220 bronze badges">220</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-4348802"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>222</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>26</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/4348802/how-can-i-output-a-utf-8-csv-in-php-that-excel-will-read-properly" class="question-hyperlink">How can I output a UTF-8 CSV in PHP that Excel will read properly?</a></h3> <div class="excerpt">I've got this very simple thing that just outputs some stuff in CSV format, but it's got to be UTF-8. I open this file in TextEdit or TextMate or Dreamweaver and it displays UTF-8 characters properly, but if I open it in Excel it's doing this silly…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/csv" class="post-tag grid--cell" title="show questions tagged 'csv'" rel="tag">csv</a> <a href="../../questions/tagged/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> <a href="../../questions/tagged/byte-order-mark" class="post-tag grid--cell" title="show questions tagged 'byte-order-mark'" rel="tag">byte-order-mark</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 03 '10 at 18:49">asked Dec 03 '10 at 18:49</time> <a href="../../users/323677/ben-saufley" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/323677.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Ben Saufley" /> </a> <div class="s-user-card--info"> <a href="../../users/323677/ben-saufley" class="s-user-card--link">Ben Saufley</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">3,259</li> <li class="s-award-bling s-award-bling__gold" title="5 gold badges">5</li> <li class="s-award-bling s-award-bling__silver" title="27 silver badges">27</li> <li class="s-award-bling s-award-bling__bronze" title="42 bronze badges">42</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-5729806"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>217</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>11</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/5729806/encode-string-to-utf-8" class="question-hyperlink">Encode String to UTF-8</a></h3> <div class="excerpt">I have a String with a "ñ" character and I have some problems with it. I need to encode this String to UTF-8 encoding. I have tried it by this way, but it doesn't work: byte ptext[] = myString.getBytes(); String value = new String(ptext,…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/java" class="post-tag grid--cell" title="show questions tagged 'java'" rel="tag">java</a> <a href="../../questions/tagged/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 20 '11 at 11:55">asked Apr 20 '11 at 11:55</time> <a href="../../users/495239/alex" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/495239.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Alex" /> </a> <div class="s-user-card--info"> <a href="../../users/495239/alex" class="s-user-card--link">Alex</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">6,957</li> <li class="s-award-bling s-award-bling__gold" title="12 gold badges">12</li> <li class="s-award-bling s-award-bling__silver" title="42 silver badges">42</li> <li class="s-award-bling s-award-bling__bronze" title="48 bronze badges">48</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-539294"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>210</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>14</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/539294/how-do-i-determine-file-encoding-in-os-x" class="question-hyperlink">How do I determine file encoding in OS X?</a></h3> <div class="excerpt">I'm trying to enter some UTF-8 characters into a LaTeX file in TextMate (which says its default encoding is UTF-8), but LaTeX doesn't seem to understand them. Running cat my_file.tex shows the characters properly in Terminal. Running ls -al shows…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/macos" class="post-tag grid--cell" title="show questions tagged 'macos'" rel="tag">macos</a> <a href="../../questions/tagged/encoding" class="post-tag grid--cell" title="show questions tagged 'encoding'" rel="tag">encoding</a> <a href="../../questions/tagged/latex" class="post-tag grid--cell" title="show questions tagged 'latex'" rel="tag">latex</a> <a href="../../questions/tagged/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 11 '09 at 23:11">asked Feb 11 '09 at 23:11</time> <a href="../../users/1190/james-a-rosen" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1190.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="James A. Rosen" /> </a> <div class="s-user-card--info"> <a href="../../users/1190/james-a-rosen" class="s-user-card--link">James A. Rosen</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">64,193</li> <li class="s-award-bling s-award-bling__gold" title="61 gold badges">61</li> <li class="s-award-bling s-award-bling__silver" title="179 silver badges">179</li> <li class="s-award-bling s-award-bling__bronze" title="261 bronze badges">261</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-1176904"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>206</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>17</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/1176904/how-to-remove-all-non-printable-characters-in-a-string" class="question-hyperlink">How to remove all non printable characters in a string?</a></h3> <div class="excerpt">I imagine I need to remove chars 0-31 and 127. Is there a function or piece of code to do this efficiently? </div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> <a href="../../questions/tagged/ascii" class="post-tag grid--cell" title="show questions tagged 'ascii'" rel="tag">ascii</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 24 '09 at 10:48">asked Jul 24 '09 at 10:48</time> <a href="../../users/47424/stewart-robinson" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/47424.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Stewart Robinson" /> </a> <div class="s-user-card--info"> <a href="../../users/47424/stewart-robinson" class="s-user-card--link">Stewart Robinson</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">3,459</li> <li class="s-award-bling s-award-bling__gold" title="4 gold badges">4</li> <li class="s-award-bling s-award-bling__silver" title="21 silver badges">21</li> <li class="s-award-bling s-award-bling__bronze" title="27 bronze badges">27</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-2365411"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>200</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>12</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/2365411/convert-unicode-to-ascii-without-errors-in-python" class="question-hyperlink">Convert Unicode to ASCII without errors in Python</a></h3> <div class="excerpt">My code just scrapes a web page, then converts it to Unicode. html = urllib.urlopen(link).read() html.encode("utf8","ignore") self.response.out.write(html) But I get a UnicodeDecodeError: Traceback (most recent call last): File…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/python" class="post-tag grid--cell" title="show questions tagged 'python'" rel="tag">python</a> <a href="../../questions/tagged/unicode" class="post-tag grid--cell" title="show questions tagged 'unicode'" rel="tag">unicode</a> <a href="../../questions/tagged/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> <a href="../../questions/tagged/character-encoding" class="post-tag grid--cell" title="show questions tagged 'character-encoding'" rel="tag">character-encoding</a> <a href="../../questions/tagged/ascii" class="post-tag grid--cell" title="show questions tagged 'ascii'" rel="tag">ascii</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 02 '10 at 17:52">asked Mar 02 '10 at 17:52</time> <a href="../../users/279695/themirror" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/279695.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="themirror" /> </a> <div class="s-user-card--info"> <a href="../../users/279695/themirror" class="s-user-card--link">themirror</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">9,963</li> <li class="s-award-bling s-award-bling__gold" title="7 gold badges">7</li> <li class="s-award-bling s-award-bling__silver" title="46 silver badges">46</li> <li class="s-award-bling s-award-bling__bronze" title="79 bronze badges">79</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-1001540"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>197</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>10</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/1001540/how-to-write-a-utf-8-file-with-java" class="question-hyperlink">How to write a UTF-8 file with Java?</a></h3> <div class="excerpt">I have some current code and the problem is its creating a 1252 codepage file, i want to force it to create a UTF-8 file Can anyone help me with this code, as i say it currently works... but i need to force the save on utf.. can i pass a parameter…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/java" class="post-tag grid--cell" title="show questions tagged 'java'" rel="tag">java</a> <a href="../../questions/tagged/file-io" class="post-tag grid--cell" title="show questions tagged 'file-io'" rel="tag">file-io</a> <a href="../../questions/tagged/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jun 16 '09 at 13:39">asked Jun 16 '09 at 13:39</time> <a href="../../users/85040/mark-smith" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/85040.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="mark smith" /> </a> <div class="s-user-card--info"> <a href="../../users/85040/mark-smith" class="s-user-card--link">mark smith</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">20,637</li> <li class="s-award-bling s-award-bling__gold" title="47 gold badges">47</li> <li class="s-award-bling s-award-bling__silver" title="135 silver badges">135</li> <li class="s-award-bling s-award-bling__bronze" title="187 bronze badges">187</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-14057434"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>192</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>7</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/14057434/how-can-i-transform-string-to-utf-8-in-c" class="question-hyperlink">How can I transform string to UTF-8 in C#?</a></h3> <div class="excerpt">I have a string that I receive from a third party app and I would like to display it correctly in any language using C# on my Windows Surface. Due to incorrect encoding, a piece of my string looks like this in Spanish: Acción whereas it should…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/string" class="post-tag grid--cell" title="show questions tagged 'string'" rel="tag">string</a> <a href="../../questions/tagged/encoding" class="post-tag grid--cell" title="show questions tagged 'encoding'" rel="tag">encoding</a> <a href="../../questions/tagged/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> <a href="../../questions/tagged/character-encoding" class="post-tag grid--cell" title="show questions tagged 'character-encoding'" rel="tag">character-encoding</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 27 '12 at 15:56">asked Dec 27 '12 at 15:56</time> <a href="../../users/1757718/gaara" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1757718.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Gaara" /> </a> <div class="s-user-card--info"> <a href="../../users/1757718/gaara" class="s-user-card--link">Gaara</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,117</li> <li class="s-award-bling s-award-bling__gold" title="2 gold badges">2</li> <li class="s-award-bling s-award-bling__silver" title="15 silver badges">15</li> <li class="s-award-bling s-award-bling__bronze" title="15 bronze badges">15</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-3828723"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>187</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>4</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/3828723/why-should-we-not-use-sys-setdefaultencoding-utf-8-in-a-py-script" class="question-hyperlink">Why should we NOT use sys.setdefaultencoding("utf-8") in a py script?</a></h3> <div class="excerpt">I have seen few py scripts which use this at the top of the script. In what cases one should use it? import sys reload(sys) sys.setdefaultencoding("utf-8") </div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/python" class="post-tag grid--cell" title="show questions tagged 'python'" rel="tag">python</a> <a href="../../questions/tagged/encoding" class="post-tag grid--cell" title="show questions tagged 'encoding'" rel="tag">encoding</a> <a href="../../questions/tagged/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> <a href="../../questions/tagged/python-2.x" class="post-tag grid--cell" title="show questions tagged 'python-2.x'" rel="tag">python-2.x</a> <a href="../../questions/tagged/sys" class="post-tag grid--cell" title="show questions tagged 'sys'" rel="tag">sys</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 30 '10 at 07:46">asked Sep 30 '10 at 07:46</time> <a href="../../users/446929/mlzboy" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/446929.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="mlzboy" /> </a> <div class="s-user-card--info"> <a href="../../users/446929/mlzboy" class="s-user-card--link">mlzboy</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">14,343</li> <li class="s-award-bling s-award-bling__gold" title="23 gold badges">23</li> <li class="s-award-bling s-award-bling__silver" title="76 silver badges">76</li> <li class="s-award-bling s-award-bling__bronze" title="97 bronze badges">97</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-2477452"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>187</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>12</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/2477452/aeurtm-showing-on-page-instead-of" class="question-hyperlink">"’" showing on page instead of " ' "</a></h3> <div class="excerpt">’ is showing on my page instead of '. I have the Content-Type set to UTF-8 in both my <head> tag and my HTTP headers: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> In addition, my browser is set to Unicode (UTF-8): So…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/encoding" class="post-tag grid--cell" title="show questions tagged 'encoding'" rel="tag">encoding</a> <a href="../../questions/tagged/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> <a href="../../questions/tagged/mojibake" class="post-tag grid--cell" title="show questions tagged 'mojibake'" rel="tag">mojibake</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 19 '10 at 13:04">asked Mar 19 '10 at 13:04</time> <a href="../../users/84201/jitendra-vyas" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/84201.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Jitendra Vyas" /> </a> <div class="s-user-card--info"> <a href="../../users/84201/jitendra-vyas" class="s-user-card--link">Jitendra Vyas</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">148,487</li> <li class="s-award-bling s-award-bling__gold" title="229 gold badges">229</li> <li class="s-award-bling s-award-bling__silver" title="573 silver badges">573</li> <li class="s-award-bling s-award-bling__bronze" title="852 bronze badges">852</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-2276200"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>179</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>14</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/2276200/changing-default-encoding-of-python" class="question-hyperlink">Changing default encoding of Python?</a></h3> <div class="excerpt">I have many "can't encode" and "can't decode" problems with Python when I run my applications from the console. But in the Eclipse PyDev IDE, the default character encoding is set to UTF-8, and I'm fine. I searched around for setting the default…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/python" class="post-tag grid--cell" title="show questions tagged 'python'" rel="tag">python</a> <a href="../../questions/tagged/encoding" class="post-tag grid--cell" title="show questions tagged 'encoding'" rel="tag">encoding</a> <a href="../../questions/tagged/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> <a href="../../questions/tagged/console" class="post-tag grid--cell" title="show questions tagged 'console'" rel="tag">console</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 16 '10 at 20:46">asked Feb 16 '10 at 20:46</time> <a href="../../users/233535/ali-nadalizadeh" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/233535.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Ali Nadalizadeh" /> </a> <div class="s-user-card--info"> <a href="../../users/233535/ali-nadalizadeh" class="s-user-card--link">Ali Nadalizadeh</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,726</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="22 silver badges">22</li> <li class="s-award-bling s-award-bling__bronze" title="24 bronze badges">24</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/utf-8_page=2" rel="prev" title="Go to page 2">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/utf-8_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/utf-8_page=2" rel="" title="Go to page 2">2</a> <div class="s-pagination--item is-selected">3</div> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/utf-8_page=99" rel="" title="Go to page 99">99</a> <a class="s-pagination--item" href="../../questions/tagged/utf-8_page=100" rel="" title="Go to page 100">100</a> <a class="s-pagination--item" href="../../questions/tagged/utf-8_page=4" rel="next" title="Go to page 4"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>