Click here to Skip to main content
15,885,216 members
Home / Discussions / ASP.NET
   

ASP.NET

 
JokeRe: aspnet_wp process crash Pin
jkirkerx5-Dec-12 17:27
professionaljkirkerx5-Dec-12 17:27 
Questionexit from a masterpage Pin
juan manuel rdz3-Dec-12 8:01
juan manuel rdz3-Dec-12 8:01 
GeneralRe: exit from a masterpage Pin
AmitGajjar3-Dec-12 18:09
professionalAmitGajjar3-Dec-12 18:09 
AnswerRe: exit from a masterpage Pin
Himanshu Yadav4-Dec-12 18:47
Himanshu Yadav4-Dec-12 18:47 
QuestionRe: exit from a masterpage Pin
ZurdoDev5-Dec-12 4:37
professionalZurdoDev5-Dec-12 4:37 
QuestionGenerating proxy from Soap UI Pin
indian1433-Dec-12 7:43
indian1433-Dec-12 7:43 
AnswerRe: Generating proxy from Soap UI Pin
Deflinek7-Dec-12 1:59
Deflinek7-Dec-12 1:59 
QuestionProblem sending arabic unicode SMS Pin
Jassim Rahma3-Dec-12 7:11
Jassim Rahma3-Dec-12 7:11 
Hi,

I would like to ask what's the best way to send arabic unicode sms by email through Clickatell?

I am using this code but some of the characters are not showing properbly when the sms recieved:

C#
private string ToUnicode(string val)
{
    Encoding utf8 = Encoding.UTF8;
    Encoding unicode = Encoding.Unicode;

    byte[] utf8Bytes = utf8.GetBytes(val);

    byte[] unicodeBytes = Encoding.Convert(utf8, unicode, utf8Bytes);

    var result = ByteArrayToString(unicodeBytes);
    result = result.Substring(result.Length - 2, 2) + result.Substring(0, result.Length - 2);
    return result;
}

public static string ByteArrayToString(byte[] ba)
{
    StringBuilder hex = new StringBuilder(ba.Length * 2);
    foreach (byte b in ba)
        hex.AppendFormat("{0:x2}", b);
    return hex.ToString();
}


www.JassimRahma.com[^]


Technology News @ www.JassimRahma.com


modified 3-Dec-12 13:29pm.

QuestionPostback issue Pin
rakeshs3123-Dec-12 2:57
rakeshs3123-Dec-12 2:57 
AnswerRe: Postback issue Pin
AmitGajjar3-Dec-12 18:11
professionalAmitGajjar3-Dec-12 18:11 
GeneralRe: Postback issue Pin
rakeshs3123-Dec-12 21:28
rakeshs3123-Dec-12 21:28 
GeneralRe: Postback issue Pin
n.podbielski4-Dec-12 8:38
n.podbielski4-Dec-12 8:38 
GeneralRe: Postback issue Pin
AmitGajjar4-Dec-12 15:20
professionalAmitGajjar4-Dec-12 15:20 
GeneralRe: Postback issue Pin
n.podbielski4-Dec-12 20:29
n.podbielski4-Dec-12 20:29 
GeneralRe: Postback issue Pin
AmitGajjar4-Dec-12 20:46
professionalAmitGajjar4-Dec-12 20:46 
GeneralRe: Postback issue Pin
n.podbielski4-Dec-12 20:59
n.podbielski4-Dec-12 20:59 
GeneralRe: Postback issue Pin
AmitGajjar4-Dec-12 21:19
professionalAmitGajjar4-Dec-12 21:19 
GeneralRe: Postback issue Pin
n.podbielski4-Dec-12 23:45
n.podbielski4-Dec-12 23:45 
AnswerRe: Postback issue Pin
CommDev8-Dec-12 23:15
CommDev8-Dec-12 23:15 
QuestionSQL query in c# Pin
AnirbanM 23-Dec-12 2:31
professionalAnirbanM 23-Dec-12 2:31 
AnswerRe: SQL query in c# Pin
Richard MacCutchan3-Dec-12 2:36
mveRichard MacCutchan3-Dec-12 2:36 
GeneralRe: SQL query in c# Pin
AnirbanM 23-Dec-12 2:47
professionalAnirbanM 23-Dec-12 2:47 
GeneralRe: SQL query in c# Pin
Richard MacCutchan3-Dec-12 2:50
mveRichard MacCutchan3-Dec-12 2:50 
GeneralRe: SQL query in c# Pin
AnirbanM 23-Dec-12 2:56
professionalAnirbanM 23-Dec-12 2:56 
Questionstate management Pin
Member 80319152-Dec-12 23:12
Member 80319152-Dec-12 23:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.