Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
    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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Java program generates html output with question mark symbols after < anchor

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
The output appears as
<�META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=ISO-2022-JP><�HTML><�BODY><�TABLE BORDER=0 CELLPADDING=3 CELLSPACING=1 WIDTH=100%><�TR COLS=2><�TD WIDTH=94% BGCOLOR=WHITE><�FONT FACE=VERDANA COLOR=NAVY SIZE=4><�B>

I have tried setting the mime type
I have tried using character encoding

Neither way works. The source is as follows:
view plaincopy to clipboardprint?


 
Saloon Keeper
Posts: 11506
247
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Marc, welcome to CodeRanch

Let's continue the discussion in your other thread: https://coderanch.com/t/535427/java/java/Java-program-generates-html-output
 
There were millions of the little blood suckers. But thanks to this tiny ad, I wasn't bitten once.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!