将阿拉伯数字格式化为正常数字

时间:2015-05-21 17:22:35

标签: java android localization locale string-formatting

我有这个字符串,其中有一些阿拉伯数字导致我的应用程序出现一些问题。所以我需要的是将数字格式化(替换)为原始数字,如下所示:

//Arabic numbers:
http://example.com/mmm/michaeljackson/٠٠٣.mp3
//I want this to be converted like this:
http://example.com/mmm/michaeljackson/002.mp3

现在我正在这样做,但字符串语言环境保持不变

String.format(Locale.US, playlistSongs.get(playPosition).getLink())

有人可以帮我解决这个问题

0 个答案:

没有答案