Accoring to my tests and the info I got, SIP phones support UTF-8 fine
- Create a command line option to convert the name from UTF-8 to ASCII (-a)
- add default parameter to the help message
@ -64,13 +64,24 @@ from optparse import OptionParser
default_cid_name="Not in OpenERP"
default_cid_name="Not in OpenERP"
# Define command line options
# Define command line options
option_server={'names':('-s','--server'),'dest':'server','type':'string','help':'DNS or IP address of the OpenERP server','action':'store','default':'localhost'}
option_port={'names':('-p','--port'),'dest':'port','type':'int','help':"Port of OpenERP's XML-RPC interface",'action':'store','default':8069}
option_user={'names':('-u','--user-id'),'dest':'user','type':'int','help':"OpenERP user ID to use when connecting to OpenERP",'action':'store','default':2}
option_password={'names':('-w','--password'),'dest':'password','type':'string','help':"Password of the OpenERP user",'action':'store','default':'demo'}
option_server={'names':('-s','--server'),'dest':'server','type':'string','help':'DNS or IP address of the OpenERP server. Default = localhost','action':'store','default':'localhost'}
option_port={'names':('-p','--port'),'dest':'port','type':'int','help':"Port of OpenERP's XML-RPC interface. Default = 8069",'action':'store','default':8069}
option_user={'names':('-u','--user-id'),'dest':'user','type':'int','help':"OpenERP user ID to use when connecting to OpenERP. Default = 2",'action':'store','default':2}
option_password={'names':('-w','--password'),'dest':'password','type':'string','help':"Password of the OpenERP user. Default = demo",'action':'store','default':'demo'}
option_ascii={'names':('-a','--ascii'),'dest':'ascii','help':"Convert name from UTF-8 to ASCII. Default = no, keep UTF-8",'action':'store_true','default':False}