Ampps on mac, additional configuration info
Installation and Configuration
This problem is caused by running
jrCore_url_string
Specifically this line:
$str = @iconv('UTF-8', 'ASCII//TRANSLIT', substr(trim($string), 0, 128));
If I comment it out and give $str another value I can save items (but of course they then have the wrong url string in the db).
$str = "thiswillgivethewrongurl";
It feels like victory that I pinpointed the line of code causing the problem on my system, but I don't have a clue what to do about it
Any idea as to what I need to enable or change in my php ini?
The php.net manual says this:
Quote: You will need nothing if the system you are using is one of the recent POSIX-compliant systems because standard C libraries that are supplied in them must provide iconv facility. Otherwise, you have to get the ยป libiconv library installed in your system.
My php5.5 ini mentions iconv but only this:
; You can redirect all of the output of your scripts to a function. For; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
; directive. Instead, explicitly set the output handler using ob_start().
; Using this ini directive may cause problems unless you know what script
; is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; Note: output_handler must be empty if this is set 'On' !!!!
; Instead you must use zlib.output_handler.
; http:
;output_handler =
and then further down, this
[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1