I have a Arabic SMS template with placeholder for customer support number, and replacing the placeholder with actual phone number (ex. +987654400). The plus sign (+) misplaced at end of number when replaced like 987654400+
Sample code:
>>>
>>> s = '{customer_number} فتش'
>>> print s.replace('{customer_number}', '+987654400')
987654400+ فتش
>>> print '+987654400'.join(s.split('{customer_number}'))
987654400+ فتش
>>>
>>> s = u'{customer_number} فتش'
>>> print s.replace('{customer_number}', '+987654400')
987654400+ فتش
>>> print '+987654400'.join(s.split('{customer_number}'))
987654400+ فتش
Python version 2.7.6, 2.7.10
OS: OSX 10.11.14
locale: English
--
It is not only happening in terminal, first I noticed this issue in API response which having following configuration.
Ubuntu 14.04.2 LTS
python 2.7.6
django 1.7.6
django-tastypie 0.12.1
system locale : English
django project locale: English