Click here to Skip to main content
12,823,512 members (46,121 online)
   

ASP.NET

 
JokeRe: aspnet_wp process crash Pin
jkirkerx5-Dec-12 18:27
memberjkirkerx5-Dec-12 18:27 
Questionexit from a masterpage Pin
juan manuel rdz3-Dec-12 9:01
memberjuan manuel rdz3-Dec-12 9:01 
GeneralRe: exit from a masterpage Pin
@AmitGajjar3-Dec-12 19:09
member@AmitGajjar3-Dec-12 19:09 
AnswerRe: exit from a masterpage Pin
Himanshu Yadav4-Dec-12 19:47
memberHimanshu Yadav4-Dec-12 19:47 
QuestionRe: exit from a masterpage Pin
ryanb315-Dec-12 5:37
memberryanb315-Dec-12 5:37 
QuestionGenerating proxy from Soap UI Pin
indian1433-Dec-12 8:43
memberindian1433-Dec-12 8:43 
AnswerRe: Generating proxy from Soap UI Pin
deflinek7-Dec-12 2:59
memberdeflinek7-Dec-12 2:59 
QuestionProblem sending arabic unicode SMS Pin
Jassim Rahma3-Dec-12 8:11
memberJassim Rahma3-Dec-12 8: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:

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 3:57
memberrakeshs3123-Dec-12 3:57 
AnswerRe: Postback issue Pin
@AmitGajjar3-Dec-12 19:11
member@AmitGajjar3-Dec-12 19:11 
GeneralRe: Postback issue Pin
rakeshs3123-Dec-12 22:28
memberrakeshs3123-Dec-12 22:28 
GeneralRe: Postback issue Pin
n.podbielski4-Dec-12 9:38
membern.podbielski4-Dec-12 9:38 
GeneralRe: Postback issue Pin
@AmitGajjar4-Dec-12 16:20
member@AmitGajjar4-Dec-12 16:20 
GeneralRe: Postback issue Pin
n.podbielski4-Dec-12 21:29
membern.podbielski4-Dec-12 21:29 
GeneralRe: Postback issue Pin
@AmitGajjar4-Dec-12 21:46
member@AmitGajjar4-Dec-12 21:46 
GeneralRe: Postback issue Pin
n.podbielski4-Dec-12 21:59
membern.podbielski4-Dec-12 21:59 
GeneralRe: Postback issue Pin
@AmitGajjar4-Dec-12 22:19
member@AmitGajjar4-Dec-12 22:19 
GeneralRe: Postback issue Pin
n.podbielski5-Dec-12 0:45
membern.podbielski5-Dec-12 0:45 
AnswerRe: Postback issue Pin
CommDev9-Dec-12 0:15
memberCommDev9-Dec-12 0:15 
QuestionSQL query in c# Pin
AnirbanM 23-Dec-12 3:31
memberAnirbanM 23-Dec-12 3:31 
AnswerRe: SQL query in c# Pin
Richard MacCutchan3-Dec-12 3:36
mvpRichard MacCutchan3-Dec-12 3:36 
GeneralRe: SQL query in c# Pin
AnirbanM 23-Dec-12 3:47
memberAnirbanM 23-Dec-12 3:47 
GeneralRe: SQL query in c# Pin
Richard MacCutchan3-Dec-12 3:50
mvpRichard MacCutchan3-Dec-12 3:50 
GeneralRe: SQL query in c# Pin
AnirbanM 23-Dec-12 3:56
memberAnirbanM 23-Dec-12 3:56 
Questionstate management Pin
Member 80319153-Dec-12 0:12
memberMember 80319153-Dec-12 0: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.


Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 27 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid