1 |
La cosa no es tan bonita como la pintan. |
2 |
Entre líneas te contesto. |
3 |
Suerte!! |
4 |
|
5 |
luis wrote: |
6 |
|
7 |
> Hola a todos, tras seguir la guia de locales con gentoo, y tras probar |
8 |
> utf-8, he tenido que volver a es_ES@euro. |
9 |
> En un principio, todo va bien, puedo escribir ñ, acentos, etc etc. |
10 |
> .... pero (tenía que haber un pero) me pasa que algunas aplicaciones |
11 |
> no funcionan como deberían: |
12 |
> |
13 |
> El mc, en principio visualiza eñes y acentos, sin embargo cuando |
14 |
> muestra algún mensaje con caracteres de este tipo, no aparecen bien y |
15 |
> me sustituye los acentos o eñes con caracteres extraños. |
16 |
|
17 |
Prueba meter en los uses los flags unicode y utf8. Recompila. No se si |
18 |
para mc es necesario, pero sí que lo es para otros muchos (como para el |
19 |
amule ;) ). |
20 |
|
21 |
> |
22 |
> Si monto un cdrom, con varios archivos que contengan eñes o acentos, |
23 |
> estos no se ven, y me corta o transforma los nombres de los archivos |
24 |
> con cosas raras. |
25 |
> |
26 |
Eso es porque los nombre en los cds están guardados con latin1. |
27 |
Para que se te vea bien, al compilar el kernel debes indicar que se use |
28 |
latin1. |
29 |
También te debería pasar en ficheros y directorios locales con |
30 |
caracteres "raros". Para arreglar los nombres debes usar convmv. |
31 |
|
32 |
En este link puedes ver algo al respecto: |
33 |
http://www.gentoo.org/doc/en/utf-8.xml |
34 |
|
35 |
Filenames, NTFS, and FAT |
36 |
|
37 |
There are several NLS options in the Linux kernel configuration menu, |
38 |
but it is important to not become confused! For the most part, the only |
39 |
thing you need to do is to build UTF-8 NLS support into your kernel, and |
40 |
change the default NLS option to utf8. |
41 |
|
42 |
Code Listing 3.1: Kernel configuration steps for UTF-8 NLS |
43 |
|
44 |
File Systems --> |
45 |
Native Language Support --> |
46 |
(utf8) Default NLS Option |
47 |
<*> NLS UTF8 |
48 |
(Also <*> other character sets that are in use in |
49 |
your FAT filesystems or Joilet CD-ROMs.) |
50 |
|
51 |
If you plan on mounting NTFS partitions, you may need to specify an nls= |
52 |
option with mount. If you plan on mounting FAT partitions, you many need |
53 |
to specify a codepage= option with mount. Optionally, you can also set a |
54 |
default codepage for FAT in the kernel configuration. Note that the |
55 |
codepage option with mount will override the kernel settings. |
56 |
|
57 |
Code Listing 3.2: FAT settings in kernel configuration |
58 |
|
59 |
File Systems --> |
60 |
DOS/FAT/NT Filesystems --> |
61 |
(437) Default codepage for fat |
62 |
|
63 |
You should avoid setting Default iocharset for fat to UTF-8, as it is |
64 |
not recommended. Instead, you may want to pass the option utf8=true when |
65 |
mounting your FAT partitions. For further information, see man mount and |
66 |
the kernel documentation at |
67 |
/usr/src/linux/Documentation/filesystems/vfat.txt. |
68 |
|
69 |
For changing the encoding of filenames, app-text/convmv can be used. |
70 |
|
71 |
Code Listing 3.3: Example usage of convmv |
72 |
|
73 |
# emerge --ask app-text/convmv |
74 |
# convmv -f current-encoding -t utf-8 filename |
75 |
|
76 |
For changing the contents of files, use the iconv utility, bundled with |
77 |
glibc: |
78 |
|
79 |
Code Listing 3.4: Example usage of iconv |
80 |
|
81 |
(substitute iso-8859-1 with the charset you are converting from) |
82 |
(Check the output is sane) |
83 |
# iconv -f iso-8859-1 -t utf-8 filename |
84 |
(Convert a file, you must create another file) |
85 |
# iconv -f iso-8859-1 -t utf-8 filename > newfile |
86 |
|
87 |
app-text/recode can also be used for this purpose. |
88 |
|
89 |
|
90 |
> La mayor parte de las páginas web, las veo correctamente, pero algunas |
91 |
> no (con eñes y acentos claro). |
92 |
|
93 |
Lo que están mal son las páginas web. Hay mucha gente que cuando diseña |
94 |
una página no la prueba nada más que en su ordenador, con su navegador, |
95 |
etc ... |
96 |
Si se te ven mal, es porque el que ha hecho la web no ha indicado el |
97 |
tipo de codificación que usa. |
98 |
Si antes usabas la misma que él usa en su servidor, todo bien. |
99 |
Ahora usas utf8 en caso de que no se indique lo contrario, y como no se |
100 |
indica lo contrario, usa utf8. Pero la página usa latin1, seguro. |
101 |
|
102 |
> |
103 |
> En fin, yo creo que he seguido bien la guia de localización (he |
104 |
> probado con es_ES@euro o con UTF-8) y en las dos me pasa lo mismo. |
105 |
> |
106 |
> Sugerencias, consejos ..... |
107 |
> |
108 |
> |
109 |
> Muchas gracias a todos. |
110 |
|
111 |
|
112 |
|
113 |
-- |
114 |
Ángel Cervera Claudio |
115 |
Freelance / desarrollos j2ee |
116 |
web: http://www.acervera.com |
117 |
tlf: 670819234 / 916058546 |
118 |
email: angel@××××××××.com |
119 |
msn: angelcervera@××××××××××.com |
120 |
yahoo: angelcervera |
121 |
aol: angelcervera |
122 |
jabber: angelcervera en jabber.org |
123 |
|
124 |
-- |
125 |
gentoo-user-es@g.o mailing list |