09-26-2009
there is likely a terminal application setting for changing the encoding of the display. you likely don't need to change the encoding of the unix env.
what's your os/platform/terminal app?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
how can i change my shell from BASH to C shell?
i am using cygwin. (3 Replies)
Discussion started by: npatwardhan
3 Replies
2. Shell Programming and Scripting
Hi,
I would like to change the font size in bash. I know how do it in ksh:
F_VDOBLE="\033#6"
print "${F_VDOBLE}Esto es..."
But in bash I don't know
Could you help me please?
Many thanks! (5 Replies)
Discussion started by: mierdatuti
5 Replies
3. Shell Programming and Scripting
It looks like,
user@hostname:/auto/home3/user$
Desired,
user@hostname$
I added following line in .bashrc, but still its same.
export PS1=" $ "
Please help me :confused: (13 Replies)
Discussion started by: admax
13 Replies
4. Shell Programming and Scripting
Hi,
I am beginner to Unix.
My requirement is to validate the encoding used in the incoming file(csv,txt).If it is encoded with UTF-8 format,then the file should remain as such otherwise i need to chnage the encoding to UTF-8.
Please advice me how to proceed on this. (7 Replies)
Discussion started by: cnraja
7 Replies
5. Shell Programming and Scripting
I have a variable in a bash script,
DISTANCE=`awk 'BEGIN {FS="\t"} {if (NR==2) print $3;}' $OUTFILE`
this is a real number taken from a file. The value are like,
0.334561754018
I am using this value in a file name,
'$NAME'_'$DISTANCE'.txt
I would like to shorten the number some to... (4 Replies)
Discussion started by: LMHmedchem
4 Replies
6. Shell Programming and Scripting
tenxun-glibc_code-x86-64-linux-20120713190049.root.tar.bz2
To
tenxun-glibc_code-x86-64-linux.root.tar.bz2 (3 Replies)
Discussion started by: yanglei_fage
3 Replies
7. Shell Programming and Scripting
Say you got a for loop where each execution has 0 dependence on the other. Thus ideally you'd like to executed them all concurrently rather than iteratively (if you had enough CPUs). We don't quite have that many CPUs but I would like to instead partition the iterations between them.
Or maybe... (10 Replies)
Discussion started by: stevensw
10 Replies
8. Shell Programming and Scripting
I have the below bash which runs great. Before I make a change I wanted to check with experts (as I am not one). After the perl code completes, I am going to display "annotation complete" then go into the remove function .
annovar() {
# combine id and position files
cd... (2 Replies)
Discussion started by: cmccabe
2 Replies
9. Solaris
Hi all!!
I´m using command file -i myfile.xml to validate XML file encoding, but it is just saying regular file . I´m expecting / looking an output as UTF8 or ANSI / ASCII
Is there command to display the files encoding?
Thank you! (2 Replies)
Discussion started by: mrreds
2 Replies
10. UNIX for Beginners Questions & Answers
Hi all,
I'm using iconv command to change files encoding to UTF-8
If my input file has chars as those are removed creating the file without those special chars.
I tried using iconv -c, but there is still the removal.
Is there a way to keep those special chars changing just the... (6 Replies)
Discussion started by: mrreds
6 Replies
LEARN ABOUT PHP
mb_internal_encoding
MB_INTERNAL_ENCODING(3) 1 MB_INTERNAL_ENCODING(3)
mb_internal_encoding - Set/Get internal character encoding
SYNOPSIS
mixed mb_internal_encoding ([string $encoding = mb_internal_encoding()])
DESCRIPTION
Set/Get the internal character encoding
PARAMETERS
o $encoding
-$encoding is the character encoding name used for the HTTP input character encoding conversion, HTTP output character encoding
conversion, and the default character encoding for string functions defined by the mbstring module. You should notice that the
internal encoding is totally different from the one for multibyte regex.
RETURN VALUES
If $encoding is set, then Returns TRUE on success or FALSE on failure. In this case, the character encoding for multibyte regex is NOT
changed. If $encoding is omitted, then the current character encoding name is returned.
EXAMPLES
Example #1
mb_internal_encoding(3) example
<?php
/* Set internal character encoding to UTF-8 */
mb_internal_encoding("UTF-8");
/* Display current internal character encoding */
echo mb_internal_encoding();
?>
SEE ALSO
mb_http_input(3), mb_http_output(3), mb_detect_order(3), mb_regex_encoding(3).
PHP Documentation Group MB_INTERNAL_ENCODING(3)