Reputation: 4151
i need to convert the below unicode to tamil character using java
<html>
<head></head>
<body>
<br>
#2970;ிங்கப்பூர்<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>
</body>
I need the output to be like this
<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>
Upvotes: 1
Views: 1460
Reputation: 16284
Use the \u
escape character, which stands for unicode:
String tamil = "This is Tamil: \u0b9a\u0bcd\u0b99\u0bcd"
+ "\u0b95\u0baa\u0bcd......"
Now, note; I converted your values to hexadecimal, as this is required instead of base-10.
Upvotes: 2