Advertisement:

Author Topic: Password problem after utf8 converting [bug and solution]  (Read 9333 times)

Offline mktek

  • Semi-Newbie
  • *
  • Posts: 53
Password problem after utf8 converting [bug and solution]
« on: September 08, 2016, 01:34:44 PM »
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:

forum/sources/LogInOut.php

Select

Code: [Select]
if ($context['character_set'] == 'utf8'
change

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


Offline skb

  • Full Member
  • ***
  • Posts: 421
    • Metabolically Challenged
Re: Password problem after utf8 converting [bug and solution]
« Reply #1 on: September 08, 2016, 10:40:47 PM »
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)
Learning, every day.
Forum - Diabetes Forum
Because every diabetic needs help
SMF 2.1 RC3 (default theme) / TP 2.0

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,759
  • Gender: Male
Re: Password problem after utf8 converting [bug and solution]
« Reply #2 on: September 09, 2016, 04:53:50 AM »
It seems a legit bug indeed. Thank you for the report :)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

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

Offline shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 2,429
    • sbulen on GitHub
Re: Password problem after utf8 converting [bug and solution]
« Reply #3 on: November 08, 2019, 07:42:55 PM »
This was fixed a while back!
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp