Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open file in UTF-8 format in Netbeans; without distorting characters?

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?

like image 328
fatherazrael Avatar asked Jun 23 '15 05:06

fatherazrael


People also ask

How do I add UTF-8 encoding to Netbeans?

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.

How to convert UTF8 to UTF-8-BOM with regular expression?

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:

Does NetBeans console display Bangla Unicode characters?

– 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.

How do I open a CSV file with Unicode characters?

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.


1 Answers

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

like image 176
fatherazrael Avatar answered Oct 09 '22 05:10

fatherazrael