Questions tagged [latin1]

Latin1 - ISO-8859-1.

A character set defines the way a sequence of bytes is converted into a sequence of characters. This particular character set is known as Latin-1, or ISO-8859-1. Of the 256 characters in Latin-1, 128 are the characters in the ASCII, the characters that typically appear on a standard U.S. English keyboard (and accompanying nonprinting special characters such as ASCII BEL). The remaining 128 consist of special and accented characters that are used regularly in the Western European languages.

To specify these characters in an HTML document (or on StackExchange), you can enter the character entity (if one is defined) or the numeric entity. For example, to cause Æ to appear in a document, you could enter either Æ or &#198. Note that the case of character entities is significant. Specifying æ causes æ to be displayed.

231 questions
3
votes
1 answer

Strange delimited hex in MySQL - need to convert to UTF8

OK. So I have a large, legacy database that is backing a high traffic website. The tables are latin1 encoded and I'm in the process of converting to UTF-8. We have converted the site to Rails, and we are starting to access the DB directly. It seems…
Craig Knox
  • 916
  • 8
  • 8
2
votes
2 answers

HTML Entity Converter in Ada

I want to write an Ada program which replaces Latin1 characters with applicable HTML entities, but my code does not work: text.txt and converted.txt are always the same. My tutor said that code is correct. Thanks in advance! Here is my code: with…
stardust
  • 343
  • 3
  • 17
2
votes
3 answers

Can't get correct value to query Chinese value from latin1 field Using JDBC for MySQL

It can't get correct value to query Chinese value from latin1 field (varchar or char) Using JDBC for MySQL. The character can't be changed. The following is the test steps. Is it possible to get the correct value for this situation? What's more…
Geln Yang
  • 902
  • 2
  • 20
  • 36
2
votes
1 answer

C#: "Swedish" characters in Xpath when parsing Lating1Encoded docs

I've a set of html docs that I need to parse. They are encoded in Latin1Encoded. I'm using HtmlAgiliy pack for "parsing". I have a Xpath query (with swedish characters) that I can't get to work because of different encodings between the docs and…
Niels Bosma
  • 11,758
  • 29
  • 89
  • 148
2
votes
2 answers

Convert character from UTF-8 to ISO-8859-1 manually

I have the character "ö". If I look in this UTF-8 table I see it has the hex value F6. If I look in the Unicode table I see that "ö" has the indices E0and 16. If I add both I get the hex value of the code point of F6. This is the binary value 1111…
testing
  • 19,681
  • 50
  • 236
  • 417
2
votes
1 answer

Ruby 1.9.2 and Rails 3.0 UTF-8 madness

My previous question is answered but there's a few more things I don't understand. I have a yaml file which contains a field with a utf-8 character: :name: O\xE2\x80\x99Reilly When I load the yaml in irb: >puts name.encoding => UTF-8 >name =>…
Cookies
  • 135
  • 8
2
votes
1 answer

XML File - I'd like to latin characteres like 'á, â, ã, ó'

I'm using NSXMLParse to parse my file.xml. It does work, but when I extract the inside text this file.xml, some words are cutted and I suppose that is an encoding problem. For example, a little part of my file.xml:
jbernardo
  • 161
  • 1
  • 4
  • 14
2
votes
1 answer

mb_detect_encoding() discrepancy for non latin1 characters

I'm using the mb_detect_encoding() function to check if a string contains non latin1 (ISO-8859-1) characters. Since Japanese isn't part of latin1 I'm using it as the text within the test string, yet when the string is passed in to the function it…
Spoonface
  • 1,513
  • 1
  • 20
  • 29
2
votes
2 answers

Locale that defaults to LATIN1 Encoding

I'm trying to create a new database cluster in postgresql that defaults to LATIN1 encoding, or at least supports it. Does anybody know what locale I could use? I am on Windows 7 64bit Thanks
The_Denominater
  • 985
  • 4
  • 9
  • 20
2
votes
1 answer

Encoding problem with reading website, three different encodings

I have a problem with a WebRequest in C#. It's a google page. The header states text/html; charset=ISO-8859-1 The website states And finally I only get the expected Result in the…
Scoox
  • 181
  • 2
  • 11
2
votes
1 answer

Guidelines for changing the default encoding of a Django site

Django comes with unicode support out of the box and it supports utf-8 by default. Say that you have developed, debugged and tested successfully a site with a bunch of Django apps in utf-8. What steps are required for a mostly painless migration to…
gsakkis
  • 1,569
  • 1
  • 15
  • 24
2
votes
2 answers

"Incorrect string value:" MySQL issue when inserting UTF8 text into a latin1 column

I have this MySQL table in production that is of charset latin1_swedish_ci ( aka latin1 ) . Right now, there is this incoming content( String : "\ud55c\ubc24\uc758" ) in a UTF-8 format that needs to be inserted into this TEXT column field called…
user1805458
  • 1,081
  • 3
  • 9
  • 21
2
votes
2 answers

Python and string accents

I am making a web scraper. I access google search, I get the link of the web page and then I get the contents of the tag. The problem is that, for example, the string "P\xe1gina N\xe3o Encontrada!" should be "Página Não Encontrada!". I tried…</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/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> <a href="../../questions/tagged/latin1" class="post-tag grid--cell" title="show questions tagged 'latin1'" rel="tag">latin1</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 15 '16 at 23:56">asked Mar 15 '16 at 23:56</time> <a href="../../users/5050920/daniel-castro" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5050920.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Daniel Castro" /> </a> <div class="s-user-card--info"> <a href="../../users/5050920/daniel-castro" class="s-user-card--link">Daniel Castro</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">155</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badge">1</li> <li class="s-award-bling s-award-bling__bronze" title="10 bronze badge">10</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-34496328"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/34496328/recoding-data-fame-object-from-latin1-to-utf-8" class="question-hyperlink">Recoding data.fame object from latin1 to utf-8</a></h3> <div class="excerpt">I work with windows 7 (my system: "LC_COLLATE=French_France.1252) with data with accents. My data are coded in ANSI which allows me to visualize them correctly in the tabs of Rstudio. My problem: When I want to a create GoogleVis page (encoding…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/r" class="post-tag grid--cell" title="show questions tagged 'r'" rel="tag">r</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/latin1" class="post-tag grid--cell" title="show questions tagged 'latin1'" rel="tag">latin1</a> <a href="../../questions/tagged/googlevis" class="post-tag grid--cell" title="show questions tagged 'googlevis'" rel="tag">googlevis</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 28 '15 at 15:35">asked Dec 28 '15 at 15:35</time> <a href="../../users/4887832/wilcar" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4887832.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Wilcar" /> </a> <div class="s-user-card--info"> <a href="../../users/4887832/wilcar" class="s-user-card--link">Wilcar</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,349</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="21 silver badges">21</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-3100123"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/3100123/mysql-varchar-change-from-latin1-to-utf8" class="question-hyperlink">MySql varchar change from Latin1 to UTF8</a></h3> <div class="excerpt">In a mySql table I'm using Latin1 character set to store text in a varchar field. As our website now is supported in more countries we need support for UTF8 instead. What will happen if I change these fields to UTF8 instead? Is it secure to do this…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/mysql" class="post-tag grid--cell" title="show questions tagged 'mysql'" rel="tag">mysql</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/utf-8" class="post-tag grid--cell" title="show questions tagged 'utf-8'" rel="tag">utf-8</a> <a href="../../questions/tagged/latin1" class="post-tag grid--cell" title="show questions tagged 'latin1'" rel="tag">latin1</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jun 23 '10 at 08:40">asked Jun 23 '10 at 08:40</time> <a href="../../users/327897/mrbiggerm" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/327897.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Mrbiggerm" /> </a> <div class="s-user-card--info"> <a href="../../users/327897/mrbiggerm" class="s-user-card--link">Mrbiggerm</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">155</li> <li class="s-award-bling s-award-bling__silver" title="2 silver badges">2</li> <li class="s-award-bling s-award-bling__bronze" title="9 bronze badges">9</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/latin1_page=4" rel="prev" title="Go to page 4">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/latin1_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/latin1_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/latin1_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/latin1_page=15" rel="" title="Go to page 15">15</a> <a class="s-pagination--item" href="../../questions/tagged/latin1_page=16" rel="" title="Go to page 16">16</a> <a class="s-pagination--item" href="../../questions/tagged/latin1_page=6" rel="next" title="Go to page 6"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>