9 More Discussions You Might Find Interesting
1. Programming
Hi guys,
After compiling a .f90 code and executing it, i get strange characters in the output file like :
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
Are these windows characters? how can i get rid of this?
Much appreciated.
Paul (1 Reply)
Discussion started by: Paul Moghadam
1 Replies
2. Red Hat
Background:
I want to upload the file from windows to RHEL5 server, the file stores Spanish words with UTF-8 encoding. it's used as the data source for loading to database.
some special characters in files like following.
í
ó
Ñ
á
Linux setting:
$ echo $LANG
en_US.UTF-8
I... (1 Reply)
Discussion started by: ambious
1 Replies
3. Hardware
Hello,
I have an x86 server with an ILOM connection that produces strange characters when I perform a start /SP/console, see below:
Oracle(R) Integrated Lights Out Manager
Version 3.0.16.10.a r68533
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
-> start... (9 Replies)
Discussion started by: kerrygold
9 Replies
4. Shell Programming and Scripting
Hello unix users :)
I am trying to grep a string from a file that both the file and the string may have characters in them that are quite... strange, like würzburger.
Well, bash reads this as
W%C3%BCrzburger
For example, if i do
wget W%C3%BCrzburger
the output is:
--2012-01-08... (2 Replies)
Discussion started by: hakermania
2 Replies
5. Shell Programming and Scripting
I've written a script:
find -depth | awk ‘
{
if ( substr($1,length($0)-2,3) == “/1.” )
{ print $1 }
{ system(“awk -f test1.awk “ $1 ) }
}
‘
The idea is that it trundles through a large directory structure looking for files which are named '1.' and then... (3 Replies)
Discussion started by: nashcom
3 Replies
6. Shell Programming and Scripting
Hello all,
I'm new to UNIX and new to this forum, so forgive my lack of knowledge. I'm new with editing in vi so I FTP scripts to a Windows machine and edit the script in notepad (when I need to do something quickly). Sometimes when I FTP the script back to the UNIX box, strange characters... (4 Replies)
Discussion started by: dgower2
4 Replies
7. UNIX for Dummies Questions & Answers
I am looking for information to find out the easiest way to have my keyboard be able to do Spanish punctuation marks when typing in word processing in Open Office....... (0 Replies)
Discussion started by: scuup
0 Replies
8. Shell Programming and Scripting
Dear All:
I Have a bunch of files which I'd like to process with a shell script. The problem is that the files have strange characters in their headers, like
�g�8@L-000-MSG2__-ABCD________-FIRA_____-000001___-200806181330-__
��e�
Data from BLABLABLA, Instrument: BLABLA, Date:... (4 Replies)
Discussion started by: luiscarvalheiro
4 Replies
9. UNIX for Dummies Questions & Answers
Hi folks. None of the conventional methods are working for my dilemma:
I have a file in my root directory that has a name comprised of strange characters. When I do an ls, it just hangs at that file until I do a Cntrl-C.
rm ./filename
&
rm \filename
do not work. I am entering the... (4 Replies)
Discussion started by: kristy
4 Replies
Date::Manip::Lang(3pm) User Contributed Perl Documentation Date::Manip::Lang(3pm)
NAME
Date::Manip::Lang - language support for Date::Manip
DESCRIPTION
Date::Manip supports a number of different languages when parsing dates, and more can be added.
CURRENT LANGUAGES
Currently, the following languages are supported by Date::Manip. The version of Date::Manip where they were added is included (so you can
see the minimum version of Date::Manip needed to parse each).
The language can be chosen by setting the Language config variable to the name of the language or any of the aliases included in the table.
All names and aliases are case insensitive.
Language Version Aliases
English default en, en_us
Catalan 5.43 ca
Danish 5.41 da
Dutch 5.32 Nederlands, nl
Finnish 6.31 fi, fi_fi
French 5.02 fr, fr_fr
German 5.31 de, de_de
Italian 5.35 it, it_it
Norwegian 6.21 nb, nb_no
Polish 5.32 pl, pl_pl
Portuguese 5.34 pt, pt_pt
Romanian 5.35 ro, ro_ro
Russian 5.41 ru, ru_ru
Spanish 5.33 es, es_es
Swedish 5.05 sv
Turkish 5.41 tr, tr_tr
ADDING A LANGUAGE
Adding a language is easily done (if you're fluent in both English and the other language). If you want to add a new language, do the
following:
Language name
When you submit the new language, I'll need the name of the language (of course) and any common locale names that might be useful for
people to select the language.
For example, if you were creating a Spanish translation (which is not necessary since it already exists), I would need the following
list:
spanish es es_es
Copy the english module
Copy the english.pm file (which is in lib/Date/Manip/Lang in the Date::Manip distribution) to the new language (i.e. spanish.pm in this
example).
Set some variables in the new module
The new module (spanish.pm) will need a few simple modifications. Change the package name from 'english' to 'spanish'.
Fix the @Encodings lines. Most languages can be written in more than one encoding. The first encoding in the list should be utf-8 and
the last should be perl. Include any other encodings that should be supported as well.
Set the $YearAdded and $LangName appropriately.
Translate the language terms
Translate all of the data (after the __DATA__ line).
The data section of the module (which is written in YAML) is fairly straightforward to translate.
Every term is defined in the Date::Manip::Lang::english document (or in any of the other language module documents), so please refer to
it to find out what each element means. Then replace the English version with the new translation.
There are some requirements:
1) Every element should be defined (except for the sephm and sepms elements).
2) The module must be written using UTF-8 characters if the language includes any non-ASCII characters.
3) Each element includes a list of values (different variations of the element). In most cases, the order of the values for each
element is not important since they are just used to create a regular expression for parsing dates, but a few of them are also used to
determine printable values using the Date::Manip::Date::printf method (or the UnixDate function). These elements are:
Element printf directive
ampm %p
day_abb %a
day_char %v
day_name %A
month_abb %b
month_name %B
nth %E
For each of these, the value that should be printed out must be the first value in the list.
4) When possible, if a language includes characters that are essentially ASCII characters with a punctuation mark, please include a
variation of the value which is just ASCII with the punctuation removed. For example, the spanish name for Saturday in ASCII would be
written sabado, but in reality, the first 'a' has an accent over it. This word should appear twice... first in full UTF-8 encoding, and
second as all ASCII. If the language (Russian for example) has no ASCII equivalent, just include the UTF-8 representation.
Feel free to contact me if you have any questions.
SEE ALSO
Date::Manip - main module documentation
LICENSE
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Sullivan Beck (sbeck@cpan.org)
perl v5.14.2 2012-06-02 Date::Manip::Lang(3pm)