football / Prediction-League

phpBB Football Prediction League Extension 3.1.x and 3.2
http://football.bplaced.net
GNU General Public License v2.0
0 stars 1 forks source link

?? is stored in database when using special characters in extra bets #2

Open JeyP91 opened 6 years ago

JeyP91 commented 6 years ago

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 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);

Thank you for your effort!

Greeting froms southern Germany :)