TReKiE / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

Problem with Font in message #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi all, there is a problem with Font.
When i send a message with Font, for example, "Accent SF", the font send is:

TextMessage txt = new TextMessage("My message");
txt.Font = "Accent SF";

and the result that I send is:

X-MMS-IM-Format: FN=Accent+SF; EF=; CO=000000; CS=0; PF=22

instead of:

X-MMS-IM-Format: FN=Accent%20SF; EF=; CO=000000; CS=0; PF=22

So, i have edit my code in:

TextMessage txt = new TextMessage("My message");
txt.Font = "Accent%20SF";

But the error is this:

X-MMS-IM-Format: FN=Accent%2520SF; EF=; CO=000000; CS=0; PF=22

So, I have edit TextMessage.cs:

Instead of this:
builder.Append("FN=").Append(HttpUtility.UrlEncode(Font.ToString()));

I have replaced with this:

builder.Append("FN=").Append(Font.ToString());

Bye bye,

 Lele from Italy

Original issue reported on code.google.com by daniele....@gmail.com on 6 Aug 2008 at 10:43

GoogleCodeExporter commented 9 years ago
@Lele
builder.Append("FN=").Append(HttpUtility.UrlEncode(Font.ToString()).Replace("+",
"%20"));
Forse sarebbe meglio così :)
Tempo fa ho segnalato lo stesso bug che però affliggeva l'invio del Nick e ho 
risolto
così ;)

Original comment by gico...@gmail.com on 7 Aug 2008 at 9:56

GoogleCodeExporter commented 9 years ago
Thanks for the report. Fixed.

Original comment by hepha...@gmail.com on 7 Aug 2008 at 2:45