iso-8859-1

R: UTF-8 character bytes as Latin-1 characters bytes

删除回忆录丶 提交于 2019-12-18 07:24:56
问题 I get UTF-8 character bytes as Latin-1 character bytes. Examples contain Latin 1 character bytes ----- UTF-8 bytes äännök ----- äännök Ã<U+0084>Ã<U+0084>NÃ<U+0096>S ----- äänös and my session info > sessionInfo() R version 3.3.2 (2016-10-31) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: macOS Sierra 10.12.1 locale: [1] C/UTF-8/C/C/C/C attached base packages: [1] stats graphics grDevices utils datasets methods base So what kind of settings do I need in R to handle umlauts

Convert ISO-8859-1 to UTF-8 [duplicate]

此生再无相见时 提交于 2019-12-17 20:17:28
问题 This question already has answers here : Jquery ignores encoding ISO-8859-1 (2 answers) How do I convert special UTF-8 chars to their iso-8859-1 equivalent using javascript? (5 answers) Closed 5 years ago . I am sending a HTTP request through jQuery's ajax. But the server, which I have no access, returns ISO-8859-1 and I my page is UTF-8. How can I convert the characters to be readable? For without converting appears something like: it�rio @Edit: I've tried changing the charset of ajax

Jquery ignores encoding ISO-8859-1

回眸只為那壹抹淺笑 提交于 2019-12-17 06:53:10
问题 I have a website which apperently removes the correct encoding (ISO-8859-1) from a string and sends it wrong. I have this encoding specified in my HTML <meta charset="ISO-8859-1"> I load my javascript via <script type="text/javascript" charset="ISO-8859-1" src="... I send for Information via JQuery Ajax Request like this (with german special character 'ö' and 'ä'): $.ajax({ url: '..', type: 'POST', contentType: 'application/xml;charset=ISO-8859-1', data: xmlRequest.html(),... This is

Convert utf8-characters to iso-88591 and back in PHP

梦想的初衷 提交于 2019-12-17 02:29:21
问题 Some of my script are using different encoding, and when I try to combine them, this has becom an issue. But I can't change the encoding they use, instead I want to change the encodig of the result from script A, and use it as parameter in script B. So: is there any simple way to change a string from UTF-8 to ISO-88591 in PHP? I have looked at utf_encode and _decode, but they doesn't do what i want. Why doesn't there exsist any "utf2iso()"-function, or similar? I don't think I have characters

Convert string from UTF-8 to ISO-8859-1

血红的双手。 提交于 2019-12-14 03:41:51
问题 I'm trying to convert a UTF-8 string to a ISO-8859-1 char* for use in legacy code. The only way I'm seeing to do this is with iconv. I would definitely prefer a completely string -based C++ solution then just call .c_str() on the resulting string. How do I do this? Code example if possible, please. I'm fine using iconv if it is the only solution you know. 回答1: I'm going to modify my code from another answer to implement the suggestion from Alf. std::string UTF8toISO8859_1(const char * in) {

Special character '\u0098' read as '\u02dc' using charCodeAt()

我与影子孤独终老i 提交于 2019-12-14 02:12:32
问题 I am creating test.js from Java, as per below. Test.js implements function d(), that receives as parameter special character ˜ ('\u0098'); Function d() should display the charCodeAt() of this special characters, that would be 152. However, it displays 732. Please note that characters 152 and 732 are both represented by special character ˜ , as per below. http://www.fileformat.info/info/unicode/char/098/index.htm http://www.fileformat.info/info/unicode/char/2dc/index.htm How can I force

Strange character issue between utf-8 and ISO-8859-1 character sets. Need explanation

余生长醉 提交于 2019-12-13 23:19:16
问题 Strange character is shown as � in while my page encoding is in utf-8 but if encoding is ISO-8859-1 than it works fine. I am storing data in mysql database with column encoding utf-8 and connection encoding utf-8. all other characters such as ß are shown properly and stored same in database. Can some one explain which character is this and how to remove it? Thanks. 回答1: The U+FFFD is a replacement character used to replace an unknown or unprintable character. Basically, this means you are

utf-8 to iso-8859-1 encoding problem

时光毁灭记忆、已成空白 提交于 2019-12-13 19:15:56
问题 I'm trying preview the latest post from an rss feed on another website. The feed is UTF-8 encoded, whilst the website is ISO-8859-1 encoded. When displaying the title, I'm using; $post_title = 'Blogging – does it pay the bills?'; echo mb_convert_encoding($post_title, 'iso-8859-1','utf-8'); // returns: Blogging ? does it pay the bills? // expected: Blogging - does it pay the bills? Note that the hyphen I'm expecting isn't a normal minus sign but some big-ass uber dash. Well, a few pixels

JQuery punctuation for spanish (ó, í, etc.) not working in IE8

浪子不回头ぞ 提交于 2019-12-13 16:21:53
问题 Im working with jquery and ASP, and have an SQL database from which I get, using the function $.getJSON(), some descriptions in spanish with "acentos" and "tildes" (á, é, í, ó, ú, ñ, etc.). With Chrome 4 and FireFox is working fine. The problem is with IE8: with some particular query, it hangs without getting the result back. If I replace all "ó" with "o" using IE, the same resultset works perfect, so I know the problem is with the "acentos" (ó). Im setting the ajax call with this code: $

problems reading CDATA section with special chars (ISO-8859-1 encoding)

左心房为你撑大大i 提交于 2019-12-13 04:11:55
问题 I am trying to read a xml stream and load it into a collection. This works but Im having difficulties reading special chars. E.g. if my xml looks like this <?xml version="1.0" encoding="ISO-8859-1" ?> <persons> <person> <firstname> <![CDATA[ Sébastien ]]> </firstname> <lastname> <![CDATA[Ørvåk]]> </lastname> </person> </persons> I try to read the values using linq like var persons = from p in doc.Elements("persons").Elements("person") select p; string firstname = person.Element("firstname")