Questions tagged [libiconv]

81 questions
2
votes
1 answer

Converting UTF-16 to UTF-8 using libiconv

I'm trying to convert an UTF-16 string into utf-8 and hit a little wall. The output string contains the caracters but with blank spaces!? The input is hi\0 and If I look at the output, it says h\0i\0 instead of hi\0. Do you see the problem here?…
greut
  • 4,305
  • 1
  • 30
  • 49
1
vote
1 answer

mkTextEncoding error when running Haskell program compiled on Mac

I'm using Haskell Platform 2011.2.0.1 installed via Homebrew. I have set up a cabalised project with relevant dependencies all defined. The executable does nothing more than to print out the arguments passed in to it. The program compiles and links…
fatuhoku
  • 4,815
  • 3
  • 30
  • 70
1
vote
2 answers

libiconv: Safe estimation of target bytes-length when converting between UTF-8/UTF-16/UTF-32?

There's tons of info about Unicode codeunits, codepoints, etc, but I'm still a bit fuzzy about converting combined characters, graphemes, etc using byte-streams (required by libiconv). Currently I'm only interested in converting between…
Harry K.
  • 560
  • 3
  • 7
1
vote
0 answers

Installing LibIconv using Homebrew in Ubuntu 20.04.1

I’m running Ubuntu 20.04.1 on Hyper-V in Windows 10, and I need to install LibIconv (in order to install ClamAV through a Homebrew package). When I run brew install clamav or brew install libiconv I get this: libiconv: is not needed on Linux, where…
SYB
  • 11
  • 1
1
vote
1 answer

Refusing to link macOS-provided software: libiconv

In an effort to follow the steps posted here to get nokogiri working, I seem unable to link iconv properly. When I run the command brew link libiconv I receive the following error: Warning: Refusing to link macOS-provided software: libiconv If…
neanderslob
  • 2,633
  • 6
  • 40
  • 82
1
vote
0 answers

Node: How to decode a win1255 file

I just trying to decode a win1255 encoding file with node server. I found a solution! with Iconv lib: const decode = content => { const iconv = new Iconv('CP1255', 'UTF-8//TRANSLIT//IGNORE'); const buffer = iconv.convert(content); return…
Eliran Suisa
  • 49
  • 1
  • 8
1
vote
0 answers

libiconv.so.2 could not be loaded

I have problem with Samba on AIX. When I try to run /opt/pware64/sbin/smbd -V I get this error: Could not load program /opt/pware64/sbin/smbd: Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded. Member libiconv.so.2 is not found…
user5979064
1
vote
0 answers

PHP upgrade fails due to libiconv.2.dylib. Should I symlink?

I am trying to upgrade to PHP 5.6 from PHP 5.5. Then I receive the following error on curl install: Executing post-install script /tmp/5.6-10.10-frontenddev-post-install dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib Referenced from:…
Union find
  • 7,759
  • 13
  • 60
  • 111
1
vote
1 answer

libiconv convert string from 'ascii' to 'utf-8'?

I am trying to convert string from 'ascii' to 'utf-8', the 'lencoded_str' function will take a pointer char and return another pointer char. the input pointer char size is unknown, and it will change each time the 'lencoded_str' function called. my…
Flan Alflani
  • 2,065
  • 3
  • 15
  • 17
1
vote
1 answer

Character conversion using iconv without the Unicode Byte Order Mark

How do I make iconv do conversions to UTF-* encodings without adding a byte order mark? The problem is shown by this code, compiled with G++ 4.8 under 64-bit Linux: #include #include #include #include using…
Tom
  • 7,269
  • 1
  • 42
  • 69
1
vote
0 answers

Building SDL2 - Undefined symbols for architecture x86_64, libiconv

I have downloaded SDL2 and am trying to build it using the terminal command ./configure --prefix=/home/user/SDL && make && make install It runs through a laundry list of things, before eventually stopping after spitting out: Undefined symbols for…
Preston T
  • 81
  • 4
1
vote
2 answers

conversion from ASCII to utf-16LE giving issues

I have written an sample code by following the link to convert ASCII to UTF-16LE using iconv but the output shows only a single charecter and blankspaces . The code is attached below please let me know where i'm going wrong. #include…
Santhosh Pai
  • 2,535
  • 8
  • 28
  • 49
1
vote
1 answer

xcodebuild -- libiconv -- compile error

I was making a build script for an iOS project. The project builds through XCode; however, with the xcodebuild command I get a weird linking error: ld: warning: ignoring file /sw/lib//libiconv.dylib, file was built for x86_64 which is not the…
TMacGyver
  • 1,281
  • 3
  • 12
  • 27
1
vote
0 answers

glib: No iconv() implementation found in C library or libiconv

I am trying to build a multilibrary project cogl-3d and have found problems building glib. After several fixes of gsid and more I've come to a halting point while trying to compile glib as no libiconv is found. checking for python script…
MLProgrammer-CiM
  • 17,231
  • 5
  • 42
  • 75
1
vote
1 answer

Problems converting from UTF-16 to UTF-8

I'm trying to convert a UTF-16 string (obtained from a JSString in spidermonkey 19) into a UTF-8 string. I think the converted string is ok, but for some reason, the conversion routine is adding two extra bytes for every unicode (non-ascii)…
funkaster
  • 152
  • 1
  • 7