Discussions
Categories
- 196.9K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.3K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 545 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.6K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 439 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
SQLplus can't display French characters

I was able to get some French and Spanish in our database, but SQLplus can't display the different (than my American English) characters.
I'm using SQLplus 19.0.0 on a 19.10.0.0.0 database. The database character set is WE8ISO8859P1.
SQL Developer reads if fine.
Example in French:
SQL Developer: APPUIE-TÊTE
SQLplus: APPUIE-T╩TE
Spanish:
SQL Developer: ÚNICAMENTE PARA
SQLplus: ┌NICAMENTE
On my Windows 10 machine (not the cloud server that has the db), I did what something on StackOverflow said and typed the following in a cmd prompt:
set NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
Then ran sqlplus from that same command window. Still didn't work.
Best Answer
-
Make sure codepage is set to one that supports French/Spanish. For example:
I:\>chcp Active code page: 437 I:\>sqlplus [email protected] SQL*Plus: Release 12.2.0.1.0 Production on Fri Oct 22 18:52:51 2021 Copyright (c) 1982, 2016, Oracle. All rights reserved. Enter password: Last Successful login time: Fri Oct 22 2021 18:49:29 -04:00 Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production SQL> select 'APPUIE-TÊTE' french,'ÚNICAMENTE PARA' spanish from dual; FRENCH SPANISH ----------- --------------- APPUIE-TETE UNICAMENTE PARA SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production I:\>chcp 1252 Active code page: 1252 I:\>sqlplus [email protected] SQL*Plus: Release 12.2.0.1.0 Production on Fri Oct 22 18:49:26 2021 Copyright (c) 1982, 2016, Oracle. All rights reserved. Enter password: Last Successful login time: Fri Oct 22 2021 14:09:18 -04:00 Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production SQL> select 'APPUIE-TÊTE' french,'ÚNICAMENTE PARA' spanish from dual; FRENCH SPANISH ------------ ---------------- APPUIE-TÊTE ÚNICAMENTE PARA SQL>
SY.
Answers
-
I don't think the single byte WE8ISO8859P1 supports multibyte French or Spanish Characters.
I'm not sure if that would cause the difference. The problem might stem from your client OS or font used for terminal.
IMO - you should take the time to convert the DB to UTF8. Especially if your data needs to support multiple languages.
-
Make sure codepage is set to one that supports French/Spanish. For example:
I:\>chcp Active code page: 437 I:\>sqlplus [email protected] SQL*Plus: Release 12.2.0.1.0 Production on Fri Oct 22 18:52:51 2021 Copyright (c) 1982, 2016, Oracle. All rights reserved. Enter password: Last Successful login time: Fri Oct 22 2021 18:49:29 -04:00 Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production SQL> select 'APPUIE-TÊTE' french,'ÚNICAMENTE PARA' spanish from dual; FRENCH SPANISH ----------- --------------- APPUIE-TETE UNICAMENTE PARA SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production I:\>chcp 1252 Active code page: 1252 I:\>sqlplus [email protected] SQL*Plus: Release 12.2.0.1.0 Production on Fri Oct 22 18:49:26 2021 Copyright (c) 1982, 2016, Oracle. All rights reserved. Enter password: Last Successful login time: Fri Oct 22 2021 14:09:18 -04:00 Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production SQL> select 'APPUIE-TÊTE' french,'ÚNICAMENTE PARA' spanish from dual; FRENCH SPANISH ------------ ---------------- APPUIE-TÊTE ÚNICAMENTE PARA SQL>
SY.
-
Hi,
In addition to what has been said, sometimes it's also necessary to change the police from the Command Prompt properties.
For example, you can change the font to Lucida Console.