Hello Sir,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Uh... nonsense.<br>
<br>
  You can't write chinese characters in ASCII.  You need to write them<br>
in another encoding, such as UTF-8.<br>
<div class="im"><br></div></blockquote><div><br></div><div><b>SOrry for giving half information Sir,</b></div><div>I even know that I can't write the Chinese characters in ASCII.</div><div>You have misunderstood me totally sir over here.</div>
<div>But the thing is like I just want to know that </div><div>If I write "現年快樂" just by doing copy paste to users file </div><div>then will the things gonna work ?</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">
> users:<br>
> "現年快樂"  Auth-Type := Accept<br>
><br>
> My doubt is How can I write UTF-8 encoded (may be HEX form) in users file.<br>
<br>
</div>  You keep saying "hex form".  I have no idea what that means, and I<br>
suspect, neither do you.<br>
<div class="im"><br></div></blockquote><div><br></div><div>As far as the HEX form is concern I mean to say that</div><div>How that character is internally stored in memory.</div><div>It has to be in binary form ri8?</div>
<div>So You an also interprete as equivalent HEX. </div><div><b>Eg:</b> </div><div><b>A character </b>stored in binary as 101001 in memory</div><div>and HEX equivalent is = 0x29</div><div>Same <b>B</b> character stored in binary in memory as 101010</div>
<div>and HEX equivalent is = 0x292A.</div><div> </div><div>I am asking is </div><div>I have sored ∞ character in </div><div>unsigned int array like following in my RADIUS client </div><div>for sending it to FREE RADIUS server.</div>
<div><br></div><div>unsigned int array[0] = '∞';</div><div><br></div><div>and I have seen its hex equivalent form</div><div>by just using </div><div>printf("HEX form: 0x%x\n",array[0]);</div><div><br></div>
<div>I got the print as: <span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><b>E2 88 9E</b></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><b><br>
</b></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><b>That's I am not able to understand that How automatically</b></span></div><div>
<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><b><span class="Apple-style-span" style="font-family: arial; font-size: small; border-collapse: separate; font-weight: normal; ">'∞' symbol is stored in memory in its equivalent UTF-8 form: </span></b></span><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><b>E2 88 9E</b></span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><b>Who does the conversion, EDITER in linux or Keybord Driver </b></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><b>itself converts to UTF-8 form?</b></span></div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
> Because I have did the same in place of Chinese I have<br>
> written the hex equivalent of ∞ infinity symbol which is also<br>
> a multilingual character in place of username and sent the request<br>
> containing<br>
> hex equivalent of UTF-8 of ∞ infinity symbol.<br>
<br>
</div>  No.  You write the UTF-8 characters, and it will work.<br>
   Your insistence on using some non-existent "hex equivalent" is why it<br>
doesn't work.<br>
<font color="#888888"><br>
 </font></blockquote><div><br></div><div>By Saying write in UTF-8 charcters that means do </div><div>I need to simply write in users file like following.?</div><div><br></div><div><b>users: </b><br> "∞"  Auth-Type := Accept</div>
</div>