如何使用java将unicode(ச)转换为泰米尔语字符

时间:2014-06-13 04:58:18

标签: java unicode tamil

我需要使用java

将以下unicode转换为tamil字符
 <html>
 <head></head>
 <body>
 <br>
#2970;&#3007;&#2969;&#3021;&#2965;&#2986;&#3021;&#2986;&#3010;&#2992;&#3021;<br>HEAVY 
DRIVER (HTV Licence)<br>Salary $ 900 +OT<br>Qualification 10, +2, ANY 
DEGREE<br>Age 25 to 40<br>Accommodation Free<br>Food Free<br>LASHING 
WORKER (HELPER)<br>Salary $ 900 + OT<br>Qualification 10, +2, ANY DEGREE<br>Age 
21 to 30<br>&#2984;&#3015;&#2992;&#3021;&#2990;&#3009;&#2965;&#2980;&#3021;&#2980;&#3015;&#2992;&#3021;&#2997;&#3009; &#2970;&#3014;&#2985;&#3021;&#2985;&#3016;&#2991;&#3007;&#2994;&#3021; : &#2972;&#2985;&#2997;&#2992;&#3007; 3, 4<br>Singapore 
Return Candidate not eligible<br>: &#2949;&#2979;&#3009;&#2965;&#2997;&#3009;&#2990;&#3021; :<br>&#2980;&#2990;&#3021;&#2986;&#3009;.&#2990;&#2985;&#3019;&#2965;&#2992;&#2985;&#3021; 
B.E.,<br>&#2980;&#2990;&#3021;&#2986;&#3009;&#2992;&#3006;&#2972;&#3021; &#2999;&#3009; &#2990;&#3006;&#2992;&#3021;&#2975;&#3021;<br>98A, 
&#2986;&#2996;&#3016;&#2991; &#2986;&#3015;&#2992;&#3009;&#2984;&#3021;&#2980;&#3009; &#2984;&#3007;&#2994;&#3016;&#2991;&#2990;&#3021;,<br>&#2965;&#3006;&#2997;&#2994;&#3021; 
&#2984;&#3007;&#2994;&#3016;&#2991;&#2990;&#3021; &#2958;&#2980;&#3007;&#2992;&#3007;&#2994;&#3021;, &#2986;&#2975;&#3021;&#2975;&#3009;&#2965;&#3021;&#2965;&#3019;&#2975;&#3021;&#2975;&#3016; - 614 601.<br>
</body>

我需要输出像这样

<html>
<head></head>
<body>
<br>
சிங்கப்பூர்<br>HEAVY 
DRIVER (HTV Licence)<br>Salary $ 900 +OT<br>Qualification 10, +2, ANY 
DEGREE<br>Age 25 to 40<br>Accommodation Free<br>Food Free<br>LASHING 
WORKER (HELPER)<br>Salary $ 900 + OT<br>Qualification 10, +2, ANY DEGREE<br>Age 
21 to 30<br>நேர்முகத்தேர்வு சென்னையில் : ஜனவரி 3, 4<br>Singapore 
Return Candidate not eligible<br>: அணுகவும் :<br>தம்பு.மனோகரன் 
B.E.,<br>தம்புராஜ் ஷு மார்ட்<br>98A, 
பழைய பேருந்து நிலையம்,<br>காவல் 
நிலையம் எதிரில், பட்டுக்கோட்டை - 614 601.<br>

  

1 个答案:

答案 0 :(得分:2)

使用\u转义字符,代表unicode:

String tamil = "This is Tamil: \u0b9a\u0bcd\u0b99\u0bcd" 
             + "\u0b95\u0baa\u0bcd......"

现在,请注意;我将您的值转换为十六进制,因为这是必需的而不是base-10。

相关问题