Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Contributor
Posts: 17
Registered: ‎02-22-2012
My Device: 9780&Bold
My Carrier: Vodafone
Accepted Solution

Ñ ​​encoding

HI,

 

I am using the following method to reproduce the sound of a url:

 

String url="http://123.123.123.123:324/N/N/Ñoño.mp3"

 

 p = Manager.createPlayer(url);

 

The problem is that the file mp3 doesn´t sound. It may be the coding Ñ.

 

Is there any solution?

 

Thanks and regards

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Ñ ​​encoding

Can you play it from your browser or other client?

 

The URL, as you gave it, does not return a respond (Connection Timed out).

 

E.

Contributor
Posts: 17
Registered: ‎02-22-2012
My Device: 9780&Bold
My Carrier: Vodafone

Re: Ñ ​​encoding

I´m Sorry, the url is a example. The problem is the character "ñ" is in the url. 

 

Can you use some kind of coding?

Developer
Posts: 713
Registered: ‎05-31-2010
My Device: 8520
My Carrier: Movistar

Re: Ñ ​​encoding

You have to URL encode the character...

Contributor
Posts: 17
Registered: ‎02-22-2012
My Device: 9780&Bold
My Carrier: Vodafone

Re: Ñ ​​encoding

Yes, I've solved it. The method createPlayer supports base64 characters. The letter Ñ not.

So I coded the letter Ñ:

 

str=str.replace(/Ñ/gi, "%C3%91");

 

Thanks and regards