Password problem after utf8 converting [bug and solution]

Started by mktek, September 08, 2016, 01:34:44 PM

Previous topic - Next topic


Yuppyy.. I am proud of myself. I found a bug. :)

SMF 2.0 (and i think 2.1)

I convert my forum from ISO (Turkish character) to UTF-8 two months ago. Thousands of members have password problems. Especially in the Turkish character members. (e.g. ülkü, çetin, öğretmen, ü ğ ş ç ö, etc.)

I finally solved the problem today. Here is the solution:



if ($context['character_set'] == 'utf8'


if ($context['character_set'] == 'UTF-8'


I converted from English- US ISO 8859-1 to utf-8, do you think I need to do that, just in case someone has used some special character (though I can't perceive it)

SMF 2.1.2 (default theme) / TP 2.2.2


Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair


Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp