Pagina 1 di 1

problemi vocali accentate pagine WEB

Inviato: mar 28 lug 2015, 18:03
da pinimbe
Ho installato la Slack 14.1
Ho localizzato come di rito con le modifiche ai file

Codice: Seleziona tutto

/etc/profile.d/lang.sh
export LANG=it_IT


/etc/profile.d/lang.csh
setenv LANG it_IT
Uso Seamonkey come browser ed ho impostato codifica caratteri predefinita Occidentale ISO-8859-1
Riscontro un problema di visualizzazione delle vocali accentate.
Posto a titolo di esempio una pagina tratta da questo forum:
Re: Modificare Slackbuild.

Messaggioda brainvision » gio dic 20, 2012 12:04
la versione di solito è il solo parametro veramente importante! - di solito, però, perché poi ci sono casi particolari o esigenze particolari in cui anche gli altri diventano importanti..
Il parametro BUILD è solo un numero progressivo
Nonostante ricerche su internet, ad oggi non sono riuscito a trovare soluzione.

Re: problemi vocali accentate pagine WEB

Inviato: mar 28 lug 2015, 21:55
da targzeta
Attento perché per un mio errore, i vecchi post e le regole in alto (quelle in rosa) ora hanno tutti i caratteri sballati. Puoi prendere come esempio questo post se vuoi, un po' di lettere accentate te le metto io:
àèìòù áéíóù âêîôû

:D

Emanuele

P.S. Comunque ti conviene usare direttamente utf8

Codice: Seleziona tutto

$> echo $LANG
it_IT.utf8

Re: problemi vocali accentate pagine WEB

Inviato: gio 30 lug 2015, 16:52
da aschenaz
Emanuele, nel commento di lang.sh e lang.csh, dice di inserire ".UTF-8".
Cambia qualcosa o vanno bene entrambe le forme? :)

Re: problemi vocali accentate pagine WEB

Inviato: gio 30 lug 2015, 20:16
da targzeta

Codice: Seleziona tutto

#!/bin/sh
# Set the system locale.  (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
#   locale -a

# en_US is the Slackware default locale:
export LANG=en_US

# 'C' is the old Slackware (and UNIX) default, which is 127-bit
# ASCII with a charmap setting of ANSI_X3.4-1968.  These days,
# it's better to use en_US or another modern $LANG setting to
# support extended character sets.
#export LANG=C

# There is also support for UTF-8 locales, but be aware that
# some programs are not yet able to handle UTF-8 and will fail to
# run properly.  In those cases, you can set LANG=C before
# starting them.  Still, I'd avoid UTF unless you actually need it.
#export LANG=en_US.UTF-8

# Another option for en_US:
#export LANG=en_US.ISO8859-1

# One side effect of the newer locales is that the sort order
# is no longer according to ASCII values, so the sort order will
# change in many places.  Since this isn't usually expected and
# can break scripts, we'll stick with traditional ASCII sorting.
# If you'd prefer the sort algorithm that goes with your $LANG
# setting, comment this out.
export LC_COLLATE=C

# End of /etc/profile.d/lang.sh
io ho usato quello che mi restituisce "locale -a" :D

Codice: Seleziona tutto

$> locale -a | grep -i it_IT
it_IT
it_IT.utf8
it_IT@euro
Comunque se sbagli il valore te ne accorgi perché un "locale" lo evidenzia

Codice: Seleziona tutto

$> LANG=boh
$> locale >/dev/null 
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Emanuele

Re: problemi vocali accentate pagine WEB

Inviato: ven 31 lug 2015, 8:47
da aschenaz
Grazie Emanuele! :)
Ho verificato e, a quanto pare, entrambe le forme sono corrette.