i need to convert French text to most correct analogue in ASCII. Let me explain. In German you should convert ä to ae, this is not simple removing of diacritics, it is finding most correct analogue. Please help me with French. I found that there is no programmatic way to do it, i create Dictionary<char, string>.
To convert (+ capitals):...
I'm looking for a character that is just like but an open circle (Maybe even a bigger bullet and it's open counterpart.) Does anybody know if there are such characters?
...
The linux file command does a very good job in recognising file types and gives very fine-grained results. The diff tool is able to tell binary files from text files, producing a different output.
Is there a way to tell binary files form text files? All I want is a yes/no answer whether a given file is binary. Because it's difficult to ...
I have a program that handles byte arrays in Java, and now I would like to write this into a XML file. However, I am unsure as to how I can convert the following byte array into a sensible String to write to a file. Assuming that it was Unicode characters I attempted the following code:
String temp = new String(encodedBytes, "UTF-8");
...
$ values=( 300 400 )
$ echo "scale=20; $values[1]-$values[2]" | bc
(standard_in) 1: illegal character: ^M // Why does it not print -100?
$ echo $values // no ^M sign found!
300 400
[Update]
Why is 5E 4d 0a, ie ^M, 13th char in ASCII?
Why is the ending sign 0a shown as .? . is 2E in DEC.
Hex nu...
I have a Pygame program that needs text input. The way it does this is to get keyboard input and when a key is pressed it renders that key so it is added to the screen. Essentially it acts like a text field. The problem is, when you hold shift it doesn't do anything. I relize this is because the program ignores shift input and instead wr...
We've recently hit a snag where a trademark symbol is being copied from one Oracle database to another, but have had it come across as a '?'.
We've tracked the issue to the destination database being configured with a character set of 'US7ASCII'. Unfortunately, rebuilding the database to address this is not something we can do at the p...
I downloaded a webpage in my python script.
In most cases, this works fine.
However, this one had a response header: GZIP encoding, and when I tried to print the source code of this web page, it had all symbols in my putty.
How do decode this to regular text?
...
I'm looking for an html/ascii character which is a triangle up and down so that I can use it as a toggle switch.
I found , and - but those have an arrow "stem". I'm looking just for the html arrow "head".
...
I was experimenting with '\' characters, using '\a\b\c...' just to enumerate for myself which characters Python interprets as control characters, and to what. Here's what I found:
\a - BELL
\b - BACKSPACE
\f - FORMFEED
\n - LINEFEED
\r - RETURN
\t - TAB
\v - VERTICAL TAB
Most of the other characters I tried, '\g', '\s', etc. just eva...
Hi,
I need to convert ascii to hex values. Refer to the Ascii table but I have a few examples listed below:
ascii 1 = 31
2 = 32
3 = 33
4 = 34
5 = 35
A = 41
a = 61 etc
But I am using int instead of string values. Is it possible to do that.
Therefore int test = 12345;
Need to get the converted i = 3132333435
...
Are ASCII diagrams within source code worth the time they take to create?
I could create a bitmap diagram much faster, but images are much more difficult to in line in a source file (until VS2010).
For the record, I'm not talking about decorative ASCII art.
Here's an example of a diagram I recently created for my code that I probably ...
I'd like Ctrl-Backspace to delete the current word in vim insert mode. From within xterm I can pull this off via
:inoremap <C-H> <C-W>
but in gnome-terminal I cannot figure out a way to make it happen.
When in vim insert mode, if I type control-v and then press backspace, I get ^H in xterm, and ^? in gnome-terminal. Unfortunately,
...
I have a wierd annoying problem with Python 2.6
I trying to run this file (and the other), on my Embedded Linux ARM board.
http://svn.tuxisalive.com/software_suite_v3/smart-core/smart-server/trunk/TDSService.py
I get this error
File "tuxhttpserver.py", line 1
SyntaxError: encoding problem: with
BOM
I know that error is about ...
I'm attempting to write an ASCII null character (nul) to a file from a Windows batch script without success. I initially tried using echo like this:
echo <Alt+2+5+6>
which seems like it should work (typing <Alt+2+5+6> in the command window does write a null character - or ^@ as it appears), but echo then outputs:
More?
and hangs un...
I have a list of strangely encoded files: 02 - Charlie, Woody and You/Study #22.mp3 which I suppose isn't so bad but there are a few particular characters which Django OR nginx seem to be snagging on.
>>> test = u'02 - Charlie, Woody and You/Study #22.mp3'
>>> test
u'02 - Charlie, Woody and You\uff0fStudy #22.mp3'
I am using nginx as ...
I've just tried to hg diff some C source files and was told that they are binary.
So, my question is: How can I convince UNIX and Mercurial that these files are, in fact, ASCII?
Thanks in advance for your help.
...
Hi all
<Feeds>
<channel>
<ctitle>YouTube</ctitle>
<cdescription>YouTube - Recently added videos</cdescription>
<items>
<recentlyAdded> <item>
<serverItemId>1</serverItemId>
<title>Fan Video CARS</title>
<author>mikar1</author>
<guid isPermaLink='false'></guid>
<link>http://www....
Is it possible to detect if an ascii character belongs to Asian double byte or Cyrillic character sets? Perhaps specific code ranges? I've googled, but not finding anything at first glance.
There's an RSS feed I'm tapping into that has the locale set as 'en-gb'. But there are some Asian double byte characters in the feed itself - which ...
Background. I'm working with netlists, and in general, people specify different hierarchies by using /. However, it's not illegal to actually use a / as a part of an instance name.
For example, X1/X2/X3/X4 might refer to instance X4 inside another instance named X1/X2/X3. Or it might refer an instance named X3/X4 inside an instance n...