1

I have a JSP page, with some info pulled from Mongo DB. The outcome HTML page has UTF-8 encoding. Occasionally this char is being pulled from the DB: , the en dash. When the page displayed in browser - this char is being displayed OK. But when in Android Webview - I see a question mark instead of it.

Any ideas how to solve it without touching the Mongo DB?

EDIT

Short HTML outcome:

<head>
    <meta charset="utf-8">
    ....
</head>
...
<div class="photo_description">
    <h1>
        <span class="text-ellipsis">
            NY – The sunrise
        </span>
    </h1>
    <div class="button">
        <div class="btn-txt">
            View
        </div>
    </div>
        ...
</div>
...

Notice the dash in the <span> element.

Igal
  • 5,833
  • 20
  • 74
  • 132

1 Answers1

0

I found an answer here:

${fn:escapeXml(photoTitle)}
Community
  • 1
  • 1
Igal
  • 5,833
  • 20
  • 74
  • 132