#1 Le 31/08/2019, à 11:04
- DCastellacci
Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
ub@ub-VirtualBox:~$ uname -a
Linux ub-VirtualBox 4.18.0-25-generic #26-Ubuntu SMP Mon Jun 24 09:32:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
ub@ub-VirtualBox:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
ub@ub-VirtualBox:~$ locale
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR:en
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=
ub@ub-VirtualBox:~$
ub@ub-VirtualBox:~$ lpinfo -v
network http
network ipp
network beh
file cups-brf:/
direct usb://EPSON/TM-T20II?serial=544338460116630000
network socket
network ipps
network lpd
direct tmbaprn:/ESDPRT001
network https
direct hp
direct hpfax
ub@ub-VirtualBox:~$ lpstat -p -d
printer TM-T20II is idle. enabled since sam. 31 août 2019 11:18:42 CEST
system default destination: TM-T20II
ub@ub-VirtualBox:~$ dpkg -l | grep cups
ii bluez-cups 5.50-0ubuntu1 amd64 Bluetooth printer driver for CUPS
ii cups 2.2.8-5ubuntu1.4 amd64 Common UNIX Printing System(tm) - PPD/driver support, web interface
ii cups-browsed 1.21.3-1ubuntu0.1 amd64 OpenPrinting CUPS Filters - cups-browsed
ii cups-bsd 2.2.8-5ubuntu1.4 amd64 Common UNIX Printing System(tm) - BSD commands
ii cups-client 2.2.8-5ubuntu1.4 amd64 Common UNIX Printing System(tm) - client programs (SysV)
ii cups-common 2.2.8-5ubuntu1.4 all Common UNIX Printing System(tm) - common files
ii cups-core-drivers 2.2.8-5ubuntu1.4 amd64 Common UNIX Printing System(tm) - driverless printing
ii cups-daemon 2.2.8-5ubuntu1.4 amd64 Common UNIX Printing System(tm) - daemon
ii cups-filters 1.21.3-1ubuntu0.1 amd64 OpenPrinting CUPS Filters - Main Package
ii cups-filters-core-drivers 1.21.3-1ubuntu0.1 amd64 OpenPrinting CUPS Filters - Driverless printing
ii cups-ipp-utils 2.2.8-5ubuntu1.4 amd64 Common UNIX Printing System(tm) - IPP developer/admin utilities
ii cups-pk-helper 0.2.6-1ubuntu3 amd64 PolicyKit helper to configure cups with fine-grained privileges
ii cups-ppdc 2.2.8-5ubuntu1.4 amd64 Common UNIX Printing System(tm) - PPD manipulation utilities
ii cups-server-common 2.2.8-5ubuntu1.4 all Common UNIX Printing System(tm) - server common files
ii libcups2:amd64 2.2.8-5ubuntu1.4 amd64 Common UNIX Printing System(tm) - Core library
ii libcupscgi1:amd64 2.2.8-5ubuntu1.4 amd64 Common UNIX Printing System(tm) - CGI library
ii libcupsfilters1:amd64 1.21.3-1ubuntu0.1 amd64 OpenPrinting CUPS Filters - Shared library
ii libcupsimage2:amd64 2.2.8-5ubuntu1.4 amd64 Common UNIX Printing System(tm) - Raster image library
ii libcupsmime1:amd64 2.2.8-5ubuntu1.4 amd64 Common UNIX Printing System(tm) - MIME library
ii libcupsppdc1:amd64 2.2.8-5ubuntu1.4 amd64 Common UNIX Printing System(tm) - PPD manipulation library
ii printer-driver-hpcups 3.18.7+dfsg1-2ubuntu2 amd64 HP Linux Printing and Imaging - CUPS Raster driver (hpcups)
ii python3-cups 1.9.73-2build1 amd64 Python3 bindings for CUPS
ii python3-cupshelpers 1.5.11-2ubuntu1 all Python utility modules around the CUPS printing system
ii tmt-cups 1.1.0-1 amd64 This is a printer driver for TM/BA Series printers used with CUPS.
ii tmt-cups-backend 1.1.0.0-2 amd64 This is a CUPS Backend for TM/BA Series printers.
ub@ub-VirtualBox:~$
It does not work
Ca marche pas
echo éééèèèèssai | lp
request id is TM-T20II-20 (0 file(s))
ub@ub-VirtualBox:~$
ub@ub-VirtualBox:/var$ more log/cups/error_log
E [31/Aug/2019:10:41:05 +0200] [Job 17] Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
E [31/Aug/2019:10:50:48 +0200] [Job 18] Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
E [31/Aug/2019:11:08:03 +0200] [Job 19] Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
TM-T20II-7 Unknown Withheld 1k Unknown completed at
Fri 30 Aug 2019 12:54:07 PM CEST
"Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded"
It does not work
Ca marche pas
ub@ub-VirtualBox:~/Documents$ lp essai.txt
request id is TM-T20II-23 (1 file(s))
ub@ub-VirtualBox:~/Documents$ more essai.txt
mdjhfmkhsjkmqhjsd
slmdfmlksjmqlsjf
smqdfmlqsjmqs
ééèèèèéssai
ub@ub-VirtualBox:~/Documents$
ub@ub-VirtualBox:/var$ more log/cups/error_log
E [31/Aug/2019:11:47:29 +0200] [Job 23] Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
Ca marche
It works
ub@ub-VirtualBox:~$ echo eeeeeeessai | lp
request id is TM-T20II-21 (0 file(s))
ub@ub-VirtualBox:~$
TM-T20II-6 Unknown Withheld 1k 1 completed at
Fri 30 Aug 2019 12:53:46 PM CEST
Do not print the test pages
N'imprime pas les pages tests
Print Test Page
Print Test Page TM-T20II Error
Unable to print test page:
Unsupported format "application/vnd.cups-pdf-banner".
Dernière modification par DCastellacci (Le 31/08/2019, à 11:10)
Hors ligne
#2 Le 31/08/2019, à 11:10
- xubu1957
Re : Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
Bonjour,
Pour ajouter toi-même les balises code à ton précédent message #1 :
Cliquer sur le lien « Modifier » en bas à droite du message
Sélectionner le texte
Cliquer sur le <> de l'éditeur de message
comme indiqué dans le : Retour utilisable de commande
_ _ _
C'est quoi le problème ?
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#3 Le 31/08/2019, à 11:11
- DCastellacci
Re : Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
N 'imprime pas les accents
Hors ligne
#4 Le 31/08/2019, à 11:41
- xubu1957
Re : Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
Séquence UTF-8 illégale trouvée. Le fichier d'entrée n'est peut-être pas codé en UTF-8.
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#5 Le 31/08/2019, à 17:44
- DCastellacci
Re : Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
J'ai installer Ubuntu 19.04 le problème demeure on ne peut pas imprimer les accents en mode plein txt comme voir dessous :
y a pas d'impression ca n'imprime pas
ub@ub-VirtualBox:~$ echo ééééèèèèssai | lp
request id is TM-T20II-3 (0 file(s))
ub@ub-VirtualBox:~$
ub@ub-VirtualBox:/var/log/cups$ more error_log
E [31/Aug/2019:18:40:40 +0200] [Job 5] Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
ub@ub-VirtualBox:/var/log/cups$
si je faits un echo comme ceci sans accent ca marche (ca imprime)
ub@ub-VirtualBox:~$ echo eeeeeeessai | lp
request id is TM-T20II-3 (0 file(s))
ub@ub-VirtualBox:~$
En vous remerciant
Dernière modification par DCastellacci (Le 31/08/2019, à 17:47)
Hors ligne
#6 Le 31/08/2019, à 18:06
Hors ligne
#7 Le 31/08/2019, à 18:47
- pingouinux
Re : Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
Bonsoir,
Donne le retour (entre balises-code) de :
echo ééééèèèèssai | file -
echo ééééèèèèssai | hd
Chez moi, le résultat est :
/dev/stdin: UTF-8 Unicode text
00000000 c3 a9 c3 a9 c3 a9 c3 a9 c3 a8 c3 a8 c3 a8 c3 a8 |................|
00000010 73 73 61 69 0a |ssai.|
00000015
Hors ligne
#8 Le 31/08/2019, à 19:17
- DCastellacci
Re : Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
Bonsoir
Chez moi j'obtient la meme chose
ub@ub-VirtualBox:~$ echo ééééèèèèèssai | hd
00000000 c3 a9 c3 a9 c3 a9 c3 a9 c3 a8 c3 a8 c3 a8 c3 a8 |................|
00000010 c3 a8 73 73 61 69 0a |..ssai.|
00000017
ub@ub-VirtualBox:~$ echo ééééèèèèèssai | file -
/dev/stdin: UTF-8 Unicode text
ub@ub-VirtualBox:~$
mais quand je lance l'impression voir plus haut j'obtient un message d'erreur UTF-8 et aucune impression alors que quand je lance la meme impression sans accents cette fois ci ca imprime.
Hors ligne
#9 Le 31/08/2019, à 19:23
- xubu1957
Re : Illegal UTF-8 sequence found. Input file perhaps not UTF-8-encoded
Pour la lisibilité des réponses du #8 :
ub@ub-VirtualBox:~$ echo ééééèèèèèssai | hd
00000000 c3 a9 c3 a9 c3 a9 c3 a9 c3 a8 c3 a8 c3 a8 c3 a8 |................|
00000010 c3 a8 73 73 61 69 0a |..ssai.|
00000017
ub@ub-VirtualBox:~$ echo ééééèèèèèssai | file -
/dev/stdin: UTF-8 Unicode text
ub@ub-VirtualBox:~$
_ _ _
Voir règles du forum > balises BB code
Balise CODE :
C'est la balise à utiliser pour donner de longs messages d'erreurs, des contenus de fichiers de configuration, des commandes à taper, etc … Elle permet des messages plus "compacts", et est moins ambiguë que d'autres polices sur certains caractères.
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne