Bug #1517

Normalize sip username to lower alphanumeric

Added by lee over 4 years ago. Updated over 4 years ago.

Status:In ProgressStart date:06/24/2013
Priority:UrgentDue date:
Assignee:lee% Done:

0%

Category:-Spent time:-
Target version:-
Component:

Description

SIP usernames can support case sensitive Unicode. Unfortunately for non-english writer in the world they are SOL because continuing to support this much freedom for an identifier exceeds anything we can provide.

SO...

It's time to normalize those usernames into a canonical format. The output should be lower alphanumeric. The input should have some rules. Like both upper and lower case input result in the same output.

History

#1 Updated by lee over 4 years ago

little script to check which usernames are UTF-8

usernames.each do |u|
  if (u.sip_username.force_encoding("UTF-8").ascii_only?)
    next
  else
    unicodes += 1
  end
end
unicodes

Also available in: Atom PDF