id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
396	The messages app doesn't count characters correctly.	TAsn	TAsn	"Hello,
When you write sms with non latin characters, the sms has to be transmitted in ucs2, the framework does that automatically so everything works just fine concerning the actual delivery.
Though as for counting, in ucs2 mode sms (at least here) are limited to 70 characters and not to 160 and each character is marked as 1 in the counter ;]
The current behavior is this: the bytes left is measure by it's length got by strlen which is the number of bytes in the string, which in utf-8 (the used encoding) can be anywhere from 1 to 4, so for example the messages app will sometimes count a character as 4 characters, and subtract that from 160, both are wrong behaviors.
Instead, when a non latin character is first encountered, all characters (latin and international) should count as 1 and the sum got should be subtracted from 70.
Hope I'm clear about this matter."	defect	closed	major		shr-messages	SHR-unstable	fixed		jesusmccloud
