-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
/bin/bash: warning: setlocale: LC_ALL: cannot change locale ( (unset))
Generating locales...
en_US.ISO-8859-1... /usr/sbin/locale-gen: line 177: warning: setlocale: LC_ALL: cannot change locale ( (unset))
done
Generation complete.
ganesha@ubuntu:~$ sudo update_locale LANG=en_US
sudo: update_locale:…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm working on an iphone app that needs to display superscripts and subscripts. I'm using a picker to read in data from a plist but the unicode values aren't being displayed corretly in the pickerview. Subscripts and superscripts are not being recognized. I'm assuming this is due to the encoding…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Consider the following problem:
A multi-line string $junk contains some lines which are encoded in UTF-8 and some in ISO-8859-1. I don't know a priori which lines are in which encoding, so heuristics will be needed.
I want to turn $junk into pure UTF-8 with proper re-encoding of the ISO-8859-1…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Excel seems to save CSV files in (what I think is) UTF-7, despite the fact that most information I have read suggest that in general, you should not UTF-7. Indeed, other applications (Text pad, which lets me choose) save things in UTF-8 (or Unicode etc, but UTF-7 is not even an option).
Using .NET…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm working on a english only C++ program for Windows where we were told "always use std::wstring", but it seems like nobody on the team really has much of an understanding beyond that.
I already read the question titled "std::wstring VS std::string. It was very helpful, but I still don't quite…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, I am trying to convert a string encoded in java in UTF-8 to ISO-8859-1. Say for example, in the string 'âabcd' 'â' is represented in ISO-8859-1 as E2. In UTF-8 it is represented as two bytes. C3 A2 I believe. When I do a getbytes(encoding) and then create a new string with the bytes in ISO-8859-1…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
We've got a page which posts data to our ASP.NET app in ISO-8859-1
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<title>`Sample Search Invoker`</title>
</head>
<body>
<form name="advancedform" method="post" action="SearchResults…
>>> More
-
as seen on Super User
- Search for 'Super User'
iconv -l outputs too few encodings on CentOS 6.5:
$ iconv -l
10646-1:1993, 10646-1:1993/UCS4, ANSI_X3.4-1968, ANSI_X3.4-1986, ANSI_X3.4, ASCII, CP367, CSASCII, CSUCS4, IBM367,
ISO-10646, ISO-10646/UCS2, ISO-10646/UCS4, ISO-10646/UTF-8,
ISO-10646/UTF8, ISO-IR-6, ISO-IR-193, …
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am usin the nsxmlparser and am wondering how I can parse ISO-8859-1 correctly into an NSString.
Currently, I am getting results w/ Â for two-byte characters.
The XML I'm using (not created by me) starts with <?xml version="1.0" encoding="ISO-8859-1"?>
Here are the basic calls I'm using…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, i need to convert a Utf-16BE in ISO-8859-1 in PHP (i'm not an expert in encoding so i don't know if Utf-16 and Utf-16BE are the same thing). I've read somewhere to use the mb_convert_encoding function but i haven't that function because i don't have the multibyte extension installed. So do you…
>>> More