Questions tagged [iconv]

iconv is a library and API for converting between different character encodings.

iconv can refer to one of three things:

  1. The iconv() API call standardised as part of the POSIX specification.
  2. The iconv command-line utility, also part of the POSIX specification.
  3. The libiconv library, a GNU project that implements the iconv() API and command-line utility.

In all cases, the API/utility/library is used to convert text between different formats.

631 questions
0
votes
1 answer

iconv is not working properly in linux (C++)

I want to convert a string from 1252 char code set to UTF-8. For this I used iconv library in my c++ application development which is based on linux platform. I used the the API iconv() and converted my string. there is a character è in my input.…
0
votes
1 answer

ICONV function and Windows-1252

I have an application for reading email from a webmail and saving the data in a database. I am using the PHP's imap library to do most of the work. The problem is that most emails have more than one charset (mostly ISO-8859-1 and UTF-8), so I have…
Leandro Barreto
  • 361
  • 2
  • 18
0
votes
0 answers

how to convert pdf file data read through file_get_contents to readable utf-8 character set format with PHP

I am trying to read and process contents from a .pdf file.The target with this process is not to use any extraneous libraries that are not attached with the raw PHP bootstrap installation.I have tried to use file_get_contents to store the read…
pmrutu
  • 21
  • 4
0
votes
2 answers

How to convert UTF8 hex to Unicode codepoint in python

I'm making a config file that contains the map of emoji's Unicode and SoftBank Unicode. Now I'm using a python program to scrach this information from http://punchdrunker.github.com/iOSEmoji/table_html/ios6/index.html but there is a problem , the…
user1462782
  • 19
  • 1
  • 5
0
votes
1 answer

iconv library on Mac OS X: strange behavior

I am porting application from CentOS 6 to Mac OS X. It depends on iconv and works in CentOS normally. However, on Mac OS X it doesn't. I see following behavior: const char *codePages[] = { "MAC", "LATIN1", "ISO_8859-1", "WINDOWS-1252", "ASCII"…
Vitalii
  • 4,434
  • 4
  • 35
  • 77
0
votes
1 answer

change charset from UTF-8 to ISO-8859-1 in mysql

I started working on a legacy mysql database whose collation: latin1-default but tables are utf-8-default. Even though tables are mentioned with utf-8 (universal standard encoding) it doesn't render Swedish characters. It seems application related…
dotnetrocks
  • 2,589
  • 12
  • 36
  • 55
0
votes
1 answer

Gallery QPKG Plugin on a QNAP TS 209

I have a QNAP TS 209 firmware version: 3.3.2 Build 0918T. (as far as I know the last official version) I've installed successfully the Gallery plugin but when starting is I get the following error: There are some problems with your web hosting…
Luixv
  • 8,590
  • 21
  • 84
  • 121
0
votes
1 answer

shell command iconv doesn't give the asked charset

I have a file in charset US-ASCII and want to encode it in UTF-8. > file -i from.php from.php: text/x-php; charset=us-ascii I type this command : > sudo -u www-data iconv -f US-ASCII -t UTF8 from.php > to.php The file to.php is created but with…
moins52
  • 744
  • 8
  • 27
0
votes
2 answers

iconv and greek filenames

I'm having a problem displaying images with greek filenames (eg 'φωτογραφία.jpg') in a browser. Using this script I found out which 2 encodings I need to use with iconv() so I can get the filename to display correctly in a browser. The image itself…
bikey77
  • 6,384
  • 20
  • 60
  • 86
0
votes
3 answers

iconv in Mac OS X 10.7.3 does nothing

I am trying to convert a php file (client.php) from utf-8 to iso-8859-1 and the following command does nothing on the file: iconv -f UTF-8 -t ISO-8859-1 client.php Upon execution the original file contents are displayed. In fact, when I check for…
Carles Andres
  • 1,761
  • 1
  • 15
  • 22
-1
votes
1 answer

iconv() - UTF-8 to ISO-8859-1 fails with german Umlauts

I want to convert a string from utf-8 to iso-8859-1 in php. (actually I want to remove all characters that are not in the ISO-8859-1 character set). $text = "test ‍♂️ test xäöüx x@x x€x"; $text = iconv('UTF-8', 'ISO-8859-1//IGNORE', $text); the…
fx123
  • 37
  • 1
  • 5
-1
votes
1 answer

Which codepage is 0x81 = ü, 0x94 = ö, 0x9A = Ü?

I've got a CSV file, which has a character encoding which I can't identify. From it's content (German language entries) I could find the following characters matching some 1-byte character encodings: 0x81 = ü 0x94 = ö 0x9A = Ü Which Codepage is…
-1
votes
1 answer

iconv module issue nodejs

I am struggling to fix this issue, to run node app, I am getting Error: Cannot find module 'iconv', I have tried installed iconv using npm install iconv command but getting below error. gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could…
swamy
  • 33
  • 6
-1
votes
1 answer

How do I set PostgreSQL's application_name so that it doesn't get the "?" characters?

I have this UTF-8 string in PHP: $test_title = 'My criticál business applicätiön'; If I send that to PostgreSQL to set the application_name, it then looks like this: My critic?l business applic?ti?n Is there a way to include characters outside of…
-1
votes
3 answers

Converting \u003c to < character with linux tools

From an ajax call, I got back something like this: {"d":"\u003cdiv class=\"popup_title\"\u003eBENTELER Autótechnika Kft.\u003c/div\u003e\u003cdiv style=\"font-size:10pt;font-weight:bold;\"\u003e8060 Mór, Akai út 5. I' d like to convert it to a…
user2194805
  • 1,201
  • 1
  • 17
  • 35