i18n bug regarding Arabic-Indic numbers needinfo.
Shaheed
srhaque at iee.org
Sat Apr 24 12:44:42 BST 2004
On Friday 23 April 2004 22:52, Diego Iastrubni wrote:
> ביום רביעי, 21 באפריל 2004, 09:28, נכתב על ידי Diego Iastrubni:
> > ביום רביעי, 21 באפריל 2004, 09:17, נכתב על ידי Lars Knoll:
> > > The conversion could be done by doing a toInt() followed by a
> > > QString::number() or by asking for the digit value of every QChar, but
> > > it's really up to the application to do proper processing here before
> > > sending it of to an application expecting latin numbers.
>
> ok..
>
> QString num1 = QString::fromUtf8("٠٥٠-٦٦٧١١");
>
> for (unsigned int i=0; i<num1.length(); i++)
> {
> QChar c = num1[i];
> if (c.isDigit())
> c = c.digitValue() + '0';
> num1[i] = c;
> }
>
> cout << num1 << endl;
I can confirm the Bengali equivalent works just fine:
QString::fromUtf8("০৫০-৬৬৭৭১");
Thanks, Shaheed
More information about the kde-core-devel
mailing list