Error When Print Accents


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Error When Print Accents
# 1  
Old 07-31-2004
PHP Error When Print Accents

I like to know how to print accent when use the command lp -d <file>.
This <file> contain the following accents (e.g. é, á, ê, ã, ç) and anothers accents, please i need to help.
thank´s

Last edited by edvaldo; 08-16-2004 at 01:31 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Print Error in Console and both Error & Output in Log file - UNIX

I am writing a shell script with 2 run time arguments. During the execution if i got any error, then it needs to redirected to a error file and in console. Also both error and output to be redirected to a log file. But i am facing the below error. #! /bin/sh errExit () { errMsg=`cat... (1 Reply)
Discussion started by: sarathy_a35
1 Replies

2. Shell Programming and Scripting

Script doesn't print error.

Hi Gurus, I have below sample script. I expect it print error when running script without input parameter. but the it doesn't. would you please help me about this issue. thanks in advance. /script$cat test.ksh #!/bin/ksh while getopts :f: arg do case $arg in ... (4 Replies)
Discussion started by: ken6503
4 Replies

3. UNIX for Dummies Questions & Answers

Error in adding print queue

Hi Everyone, I am trying to add a print queue using HPPI. After selecting the option to add a new printer, I get the following message: ERROR: Printer configuration error Could not find the printer configuration file Please verify software installation Can someone please assist me with... (1 Reply)
Discussion started by: Scarlet
1 Replies

4. Slackware

cp does not like filenames with accents?

Hi: mkisofs -graft-points -rational-rock -joliet -joliet-long -full-iso9660-filenames -iso-level 2 -o /tmp/image.iso STORE1/=/almacen/strauss In /almacen/strauss there are filenames containing not only spaces but accented characters as well. I burned the image to DVD, with the result that all... (2 Replies)
Discussion started by: stf92
2 Replies

5. Shell Programming and Scripting

awk Print get error

Hi, Gurus, I have script as following: #!/usr/bin/khs lastdate=`cat abc` echo $lastdate awk '{ if ($0~/^\$\$lastupdatedate *=/) {print '\$\$lastupdatedate=$lastdate'} else {print $0}}' file1 > tmp error message awk: syntax error near line 1 awk: illegal statement near line 1 when I change... (7 Replies)
Discussion started by: ken002
7 Replies

6. Shell Programming and Scripting

Print system error in perl

Hi ... I am trying to get the system error msg when the directory creation is failed. unless (`mkdir -p "xyz/abc/test"`) { print "Not able to create directory $!"; } This code is running in cgi-bin script and is the output displayed as HTML. How to get the system error msg like... (1 Reply)
Discussion started by: Anu_1
1 Replies

7. Shell Programming and Scripting

How to print error and exit if command fails?

Guys any tips on printing a certain error message to stderr and exiting should a command fail within a ksh script? I'm trying to null some output files. Touch isn't suitable as i need to null them. print "" > file isn't suitable as i need to check elsehere for if they are 0bytes or not. ... (5 Replies)
Discussion started by: lavascript
5 Replies

8. Shell Programming and Scripting

Print Error with set command

I need to print some mandatory instructions if something fails in the script. I am using set -e to check and exit the script if some scripts/commands return non zero exit code. Is there any way to print these instructions with set command?? (0 Replies)
Discussion started by: Shribigb
0 Replies

9. Shell Programming and Scripting

remove accents and symbols with sed

Hi, I would like to know how could I remove accentes and the symbols: º and ª of a text file with sed. Whis this command doesn't works :-( sed "s/í/i/g" filename Many thanks and sorry for my english! (7 Replies)
Discussion started by: mierdatuti
7 Replies

10. Shell Programming and Scripting

Error while trying to print message

Hi all Geting this error while trying to print message as : ./logfunc: print: bad file unit number heres what i m trying to do : log_date="$(date '+%d/%m/%Y %H:%M:%S')" log_type="Message" print "${log_date}: ${log_type}" print -u3 "${log_date}: ${log_type}" this error is due to... (3 Replies)
Discussion started by: Navatha
3 Replies
Login or Register to Ask a Question
COLLATOR(3)								 1							       COLLATOR(3)

The Collator class

INTRODUCTION
Provides string comparison capability with support for appropriate locale-sensitive sort orderings. CLASS SYNOPSIS
Collator Collator Methods o public Collator::__construct (string $locale) o public bool Collator::asort (array &$arr, [int $sort_flag]) o public int Collator::compare (string $str1, string $str2) o publicstatic Collator Collator::create (string $locale) o public int Collator::getAttribute (int $attr) o public int Collator::getErrorCode (void ) o public string Collator::getErrorMessage (void ) o public string Collator::getLocale (int $type) o public string Collator::getSortKey (string $str) o public int Collator::getStrength (void ) o public bool Collator::setAttribute (int $attr, int $val) o public bool Collator::setStrength (int $strength) o public bool Collator::sortWithSortKeys (array &$arr) o public bool Collator::sort (array &$arr, [int $sort_flag]) PREDEFINED CONSTANTS
o Collator::FRENCH_COLLATION ( integer) - Sort strings with different accents from the back of the string. This attribute is auto- matically set to On for the French locales and a few others. Users normally would not need to explicitly set this attribute. There is a string comparison performance cost when it is set On, but sort key length is unaffected. Possible values are: o Collator::ON o Collator::OFF(default) o Collator::DEFAULT_VALUE Example #1 FRENCH_COLLATION rules oF=OFF cote < cote < cote < cote oF=ON cote < cote < cote < cote o Collator::ALTERNATE_HANDLING ( integer) - The Alternate attribute is used to control the handling of the so called variable char- acters in the UCA: whitespace, punctuation and symbols. If Alternate is set to NonIgnorable (N), then differences among these characters are of the same importance as differences among letters. If Alternate is set to Shifted (S), then these characters are of only minor importance. The Shifted value is often used in combination with Strength set to Quaternary. In such a case, white- space, punctuation, and symbols are considered when comparing strings, but only if all other aspects of the strings (base letters, accents, and case) are identical. If Alternate is not set to Shifted, then there is no difference between a Strength of 3 and a Strength of 4. For more information and examples, see Variable_Weighting in the UCA. The reason the Alternate values are not sim- ply On and Off is that additional Alternate values may be added in the future. The UCA option Blanked is expressed with Strength set to 3, and Alternate set to Shifted. The default for most locales is NonIgnorable. If Shifted is selected, it may be slower if there are many strings that are the same except for punctuation; sort key length will not be affected unless the strength level is also increased. Possible values are: o Collator::NON_IGNORABLE(default) o Collator::SHIFTED o Collator::DEFAULT_VALUE Example #2 ALTERNATE_HANDLING rules o S=3, A=N di Silva < Di Silva < diSilva < U.S.A. < USA o S=3, A=S di Silva = diSilva < Di Silva < U.S.A. = USA o S=4, A=S di Silva < diSilva < Di Silva < U.S.A. < USA o Collator::CASE_FIRST ( integer) - The Case_First attribute is used to control whether uppercase letters come before lowercase let- ters or vice versa, in the absence of other differences in the strings. The possible values are Uppercase_First (U) and Lower- case_First (L), plus the standard Default and Off. There is almost no difference between the Off and Lowercase_First options in terms of results, so typically users will not use Lowercase_First: only Off or Uppercase_First. (People interested in the detailed differences between X and L should consult the Collation Customization). Specifying either L or U won't affect string comparison performance, but will affect the sort key length. Possible values are: o Collator::OFF(default) o Collator::LOWER_FIRST o Collator::UPPER_FIRST o Collator:DEFAULT Example #3 CASE_FIRST rules oC=X or C=L "china" < "China" < "denmark" < "Denmark" oC=U "China" < "china" < "Denmark" < "denmark" o Collator::CASE_LEVEL ( integer) - The Case_Level attribute is used when ignoring accents but not case. In such a situation, set Strength to be Primary, and Case_Level to be On. In most locales, this setting is Off by default. There is a small string compari- son performance and sort key impact if this attribute is set to be On. Possible values are: o Collator::OFF(default) o Collator::ON o Collator::DEFAULT_VALUE Example #4 CASE_LEVEL rules oS=1, E=X role = Role = role oS=1, E=O role = role < Role o Collator::NORMALIZATION_MODE ( integer) - The Normalization setting determines whether text is thoroughly normalized or not in comparison. Even if the setting is off (which is the default for many locales), text as represented in common usage will compare correctly (for details, see UTN #5). Only if the accent marks are in noncanonical order will there be a problem. If the setting is On, then the best results are guaranteed for all possible text input. There is a medium string comparison performance cost if this attribute is On, depending on the frequency of sequences that require normalization. There is no significant effect on sort key length. If the input text is known to be in NFD or NFKD normalization forms, there is no need to enable this Normalization option. Possible values are: o Collator::OFF(default) o Collator::ON o Collator::DEFAULT_VALUE o Collator::STRENGTH ( integer) - The ICU Collation Service supports many levels of comparison (named "Levels", but also known as "Strengths"). Having these categories enables ICU to sort strings precisely according to local conventions. However, by allowing the levels to be selectively employed, searching for a string in text can be performed with various matching conditions. For more detailed information, see collator_set_strength(3) chapter. Possible values are: o Collator::PRIMARY o Collator::SECONDARY o Collator::TERTIARY(default) o Collator::QUATERNARY o Collator::IDENTICAL o Collator::DEFAULT_VALUE o Collator::HIRAGANA_QUATERNARY_MODE ( integer) - Compatibility with JIS x 4061 requires the introduction of an additional level to distinguish Hiragana and Katakana characters. If compatibility with that standard is required, then this attribute should be set On, and the strength set to Quaternary. This will affect sort key length and string comparison string comparison performance. Possible values are: o Collator::OFF(default) o Collator::ON o Collator::DEFAULT_VALUE o Collator::NUMERIC_COLLATION ( integer) - When turned on, this attribute generates a collation key for the numeric value of sub- strings of digits. This is a way to get '100' to sort AFTER '2'. Possible values are: o Collator::OFF(default) o Collator::ON o Collator::DEFAULT_VALUE o Collator::DEFAULT_VALUE ( integer) - o Collator::PRIMARY ( integer) - o Collator::SECONDARY ( integer) - o Collator::TERTIARY ( integer) - o Collator::DEFAULT_STRENGTH ( integer) - o Collator::QUATERNARY ( integer) - o Collator::IDENTICAL ( integer) - o Collator::OFF ( integer) - o Collator::ON ( integer) - o Collator::SHIFTED ( integer) - o Collator::NON_IGNORABLE ( integer) - o Collator::LOWER_FIRST ( integer) - o Collator::UPPER_FIRST ( integer) - PHP Documentation Group COLLATOR(3)