Issue
There are Norwegian characters in properties file. When i open in UTF-8 enabled Notepad++ it appears correctly:
ForeslÄtte
But when i open same file in my Netbeans editor; it shows distorted characters like :
ForeslĂ¥tte
Netbeans Version in Use: 8.0.2.
Project Type: Maven Project
In Maven Proeject properties there is setting for UTF-8:
<properties>
<app.navn>posten</app.navn>
<jdk.version>1.8</jdk.version>
<wro4j.version>1.7.6</wro4j.version>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <--
<servlet.version>3.1.0</servlet.version>
</properties>
Could anyone help in finding what settings need to be done in Netbeans to get correct UTF-8 characters?
Solution
Right Click Properties File -> Properties -> Encoding -> Tick Use Project Encoding
Now open the file and matter resolved.
Note: My Project Encoding was already set to UTF-8. You can set i: Right Click on Project -> Properties -> Sources -> Select Encoding UTF-8
Answered By - fatherazrael