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?
Edit the file netbeans.conffrom the etcdirectory located at the installation directory of NetBeans. In the netbeans_default_optionsoption, add -J-Dfile.encoding=UTF-8.
For example, in Notepad++, open the Find in Files dialog ( Ctrl + Shift + F ). And use Regular Expression: For other great solutions for converting UTF-8 in UTF-8-BOM check this link below:
– theyuv Mar 9 '16 at 12:56 Related : Netbeans console does not display Bangla unicode characters – Quazi Irfan Mar 9 '16 at 14:34 Add a comment | 4 Answers 4 ActiveOldestVotes 7 Edit the file netbeans.conffrom the etcdirectory located at the installation directory of NetBeans.
Open Excel, search "Get Data From Text" to open a wizard when you want to open a CSV file. 2. Go to the location of the CSV file, that you want to import. 3. Choose Delimited, set the character encoding to 65001: Unicode (UTF-8) from the dropdown list.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With