Register for your free account! | Forgot your password?

You last visited: Today at 14:51

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



TBM-API

Discussion on TBM-API within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1


 
Whoknowsit's Avatar
 
elite*gold: 146
Join Date: May 2009
Posts: 3,764
Received Thanks: 6,974
TBM-API

Moin,

ich hab gerade ein kleines Problem und komme an dieser Stelle nicht vorwärts...

In der API bekomme ich eine Zahlung von .Angel\u0099, also .Angel™ angezeigt.

Lese ich das mittels PHP aus,

Code:
file_get_contents("http://www.elitepvpers.com/theblackmarket/api/transactions.php?u=1369541&type=received&secretword=XXXXXXX");
ist auch noch alles normal. Wenn ich nun aber mit json_decode ein Array daraus baue, wird das Zeichen nicht umgewandelt. Stattdessen verschwindet es d.h. was ich sehe ist nurnoch .Angel

Ich habe eine weitere Zahlung von fr\u00fchling, also frühling. Hier funktioniert die Umwandlung. Auch Namen, die komplett aus UTF-8 Zeichen bestehen, sind kein Problem. Die sind auch anders kodiert.

Mir ist dieses Phänomen nur bei \u0099, also dem Zeichen ™ aufgefallen und ich habe absolut keine Idee, woran das liegt.
Whoknowsit is offline  
Old 12/10/2012, 12:38   #2



 
Shawak's Avatar
 
elite*gold: 0
The Black Market: 259/0/0
Join Date: Apr 2010
Posts: 10,289
Received Thanks: 3,613
Du musst dem Header mitteilen um welche Encoding es sich handelt.

Schau mal hier:


Shawak is offline  
Reply




All times are GMT +1. The time now is 14:52.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.