Jump to content

Adrian

Member
  • Posts

    17
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Adrian got a reaction from vdesabou in Prevent "flash" of no result   
    By the way, strlen() of "på" returns 4 in Alfred result and not 2, so it's not a good way to count characters. mb_strlen() also returns 4 unless I set mb_internal_encoding("UTF-8") first, then mb_strlen() returns 3. Unless I run my script from the command line, then I actually get 2 as I should. There's something odd with the encoding inside Alfred or my script. Or both. Or I don't know...
     
    Edit: Oh, there was a online fix for that: $query = iconv("UTF-8-MAC", "UTF-8", $query);
×
×
  • Create New...