There is a problem in the current implementation of apr_iconv() when converting from ucs-2. The problem is located in the convert_from_ucs function from the apr-iconv-0.9.4/ces/iso-10646-ucs-2.c file. The problem is that this function will prepend the 0xFE,0xFF prefix to the output buffer if the current state is not zero, while the intent was exactly the opposite. This causes the output to be garbled. I will attach a patch which fixes the problem.
Created attachment 8911 [details] convert_from_ucs() bugfix
making APR patch easily findable
This looks correct, here, so voting it up. Other eyeballs?
Tag correct component; planning to commit this shortly seeing no objections.
Mass reassign the 44 open apr-bugs to apr bug list
I agree, there is has been no disagreement, fixed for a future apr 0.9/1.x release. Thank you for the patch!