Save Problem: Save could not be completed. Try File > Save As... if the problem persists.
Reason:
Some characters cannot be mapped to ISO-8859-1 character encoding.
Either change the encoding or remove the characters which are not
supported by ISO-8859-1 character encoding.
package com.code2care.tutorials;
import java.util.regex.Pattern;
/**
*
* @author Code2care Tutorials
*
* � 2020
*
*/
If you are using Non-Latin English characters in your code (if you are Swedish or German example: Å Ä Ö) then you might see this error message if you have the file encoding which is not UTF-8. You either need to save this file as UTF-8 or remove such characters.
Solution:
If you are using eclipse, Go to Window -> Preferences -> Search Workspace -> Text Encoding => UTF-8
[Java] Error - Unmappable character for encoding UTF-8. Save could not be completed.
More Posts related to Java,
- CRUD operations in Spring Boot + JDBC
- Java Check Leap Year - Programs with Code Examples
- [fix] Java JDBC ConnectException: Connection refused
- How to add hours and minutes to Java Instant
- Java Program: Random Number Generator
- Java: The value of the local variable string is not used
- How to get list of all Java versions installed on macOS
- Java SE JDBC with Prepared Statement Parameterized Select Example
- Java + Spring JDBC Template + Gradle Example
- Convert String to LocalDate in Java
- Remove Trailing zeros BigDecimal Java
- Java 8 Predicate Functional Interface isEqual() Method Example
- How to Hardcode Date in Java with Examples
- Java 8: Predicate negate() default Function Example
- Java: Collect Stream as ArrayList or LinkedList
- The Motivation Behind Generics in Java Programming
- How to Add/Subtract Days to the Current Date in Java
- Error: Can not find the tag library descriptor for
- Setting up JUnit 5 dependency with Maven Example
- Run Java Code Every Second
- How to create a tar.gz file using Java
- [Fix] java: integer number too large compilation error
- Java 8: Find the Max value in a List
- Your JBoss Application Server 7 is running However you have not yet added any users to be able to access the admin console
- Convert Java Array to ArrayList Code Example
More Posts:
- How to add Date and Time to Windows Notepad File - NotepadPlusPlus
- java.lang.NoClassDefFoundError android.support.v4.content.LocalBroadcastManager - Android
- Change label (text) color in tkinter - Python
- Java JDBC: Insert Java 8 LocalDate and Time using PreparedStatement - Java
- How to install and Use Java JDK 21 Initial Release Candidate - Java-JDK-21
- Struts 2 : There is no Action mapped for namespace [/] and action name [form] associated with context path [/proj] - Java
- How to get an embed code from Vimeo? - HowTos
- [Fix] Cannot connect to Microsoft SQL Server, Error: 18456 - Microsoft