RandeeCao / marketbilling

Automatically exported from code.google.com/p/marketbilling
1 stars 0 forks source link

QueryInventory returns JSON string with malformed currency sign € #168

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
STEPS TO REPRODUCE:
I've a code like this
onCreate()
{
iap_helper = new IabHelper(this, app_key);
iap_helper.enableDebugLogging(true);
iap_helper.startSetup(this);
}

onIabSetupFinished(IabResult result)
{
iap_helper.queryInventoryAsync(this);
}

EXPECTED OUTPUT:
SkuDetails should have valid price field like "price":"1,10 €",

ACTUAL OUTPUT:
instead it has malformed price field like "price":"1,10┬áÔé¼",

OS VERSION:
Android 4.3

API LEVELS:
 <uses-sdk android:minSdkVersion="9" />
 <uses-sdk android:targetSdkVersion="15" /> 

MARKET/MYAPPS VERSION:
In-app billing API v3

DEVICE:
Galaxy Nexus and Nexus 10

NOTES:
logcat prints following row
D/IabHelper( 9465): Got sku details: SkuDetails:{"title":"Permanent ad 
removal","price":"1,99-áÔé¼","type":"inapp","description":"Remov
e advertisements from the game 
permanently.","price_amount_micros":1290000,"price_currency_code":"EUR","product
Id":"remove_ads"}

Original issue reported on code.google.com by olli.ala...@gmail.com on 3 Jan 2014 at 11:11

GoogleCodeExporter commented 8 years ago
Note: It returns malformed currency sign for all of my apps (tested two, one 
published long time ago, another unpublished and under testing).

Original comment by olli.ala...@gmail.com on 3 Jan 2014 at 11:13

GoogleCodeExporter commented 8 years ago
@Olli (#1),   this doesn't occur on my live app. at all. 
check your skudetails class (did you change it?).  
Perhaps you are still using v2 market billing?

Original comment by petetan...@gmail.com on 7 Jan 2014 at 10:04