• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unicode conversion

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have run the program to converting a Unicode to Japanese language successfully
here is my code:

Output: 丰丠乀乐习买

(i font know what it says randomly picked the Unicode)
this is OK but when i try to print in PDF using itext
it doesn't print anything

it runs even generate a PDF

but when i try to open PDF it says corrupted

if i have to print in PDF i have to install particular font for it

so here is the question:
how it can print on my output console if i have not installed any font on my OS
 
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

so here is the question:
how it can print on my output console if i have not installed any font on my OS


If you hadn't any fonts installed on your OS you wouldn't be able to see any text in any language.
The simple answer is the default font on your console must include a Japanese character set. Try printing out some characters in other languages and see if they print correctly. Here's some Thai characters that print as squares on my console \u0e22\u0e01\u0e40\u0e25\u0e34\u0e01 because its default font doesn't support Thai.
 
Rahul Borse
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey thanks Tony
i tried most of the Unicode
its not the problem with other stuffs of OS(windows)
but only with PDF

i mean it prints everywhere while i have not installed any extra fonts
even i have personally checked font folder in windows
then how they shows me other languages like Japanese etc

while in PDF if i try to print other(Japanese) language
It doesn't works
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic