I am facing the issue that german special characters (ä, ö, ü) are beeing replaced with '??' when saving extra bets with free text.
I already solved it locally in my installation. It seems that when requesting the string of the form, UTF8 is not being used. So the request->variable API needs the parameter _$multibyte_ set to true, so that it returns an UTF8 string.
In controller/main.php, line 430:
replace:
$extra_bet = $this->request->variable('extra' . $extra_no, 'nv');
with:
$extra_bet = $this->request->variable('extra' . $extra_no, 'nv', true);
In controller/main.php, line 676:
replace:
$extra_results = $this->request->variable('extra' . $extra_no, array('nv'));
with:
$extra_results = $this->request->variable('extra' . $extra_no, array('nv'), true);
In controller/main.php, line 687:
replace:
$extra_result = $this->request->variable('extra' . $extra_no, 'nv');
with:
$extra_result = $this->request->variable('extra' . $extra_no, 'nv', true);
Hi,
first thank you for all your development!
I am facing the issue that german special characters (ä, ö, ü) are beeing replaced with '??' when saving extra bets with free text.
I already solved it locally in my installation. It seems that when requesting the string of the form, UTF8 is not being used. So the
request->variable
API needs the parameter_$multibyte_
set totrue
, so that it returns an UTF8 string.In controller/main.php, line 430: replace:
$extra_bet = $this->request->variable('extra' . $extra_no, 'nv');
with:$extra_bet = $this->request->variable('extra' . $extra_no, 'nv', true);
In controller/main.php, line 676: replace:
$extra_results = $this->request->variable('extra' . $extra_no, array('nv'));
with:$extra_results = $this->request->variable('extra' . $extra_no, array('nv'), true);
In controller/main.php, line 687: replace:
$extra_result = $this->request->variable('extra' . $extra_no, 'nv');
with:$extra_result = $this->request->variable('extra' . $extra_no, 'nv', true);
Thank you for your effort!
Greeting froms southern Germany :)