In SQL how do I exclude a record if there are more than 2 characters after a dash..
Example I only want to return records that match the following
AA00000-0
but the table also has recoreds like AA0000-000,AA0000000-00
I need to return only records that have a single digit after the dash
Hi guys I'm retrieving emails and some of my emails have utf encoded text. However even though my page is encoded as utf 8 - in some places when I try to out put utf text I get funny characters like :
=?utf-8?B?Rlc6INqp24zYpyDYotm+INin2LMg2YXYs9qp2LHYp9uB2bkg2qnbjCDZhtmC?=
=?utf-8?B?2YQg2qnYsdiz2qnYqtuSINuB24zaug==?=
Whereas in other areas of the same page it displays fine. WHats going on?
With higher resolution on our monitors, better editors, wider monitors, longer programs (that are printed out less frequently) and higher environmental awareness, how important is the convention to keep code lines at 80 characters limit?
Seriously. On a 22" monitor, it only covers maybe a quarter of the screen. I need some ammo to axe down this rule.
Edit: I'm not saying that there shouldn't be a limit; I'm just saying, 80 characters is very small.
Hi! My program file is encoded in utf-8 so "abc".length==3 but "åäö".length==6. I realize that å,ä,ö, are stored as two bytes in utf-8, and that a ruby String is a sequence of bytes (not characters), but it is annoying! Is there a best practice to work around this problem?
My program file is encoded in UTF-8 so "abc".length == 3 but "åäö".length == 6. I realize that å, ä, ö, etc. are stored as two bytes in UTF-8, and that a Ruby String is a sequence of bytes (not characters), but it is annoying! Is there a best practice to work around this problem?
From reading the RFC it appears that CID can/must only contain characters from the same set as those permissable by a regular URI. Is this correct. Im asking because I wish to writeup a simple helper that takes a CIDs prefix and adds a counter when generating CID for mime multitypes attachments.
Hi guys I've shifted to using the zend framework for reading messages from an inbox however when reading some html messages I see a lot of weird charcters like:
don’t
looks like
don=92t
Plus other weird characters like =20 .. whats going on? Is it an ecoding issue? How do I fix it?
I need to generate a string with n characters in Python. Is there a one line answer to achieve this with the existing Python library? For instance, I need a string of 10 letters:
string_val = 'abcdefghij'
Allowed characters are (at least) A-Z, a-z, 0-9, ö, Ö, ä, ä, å, Å and german, latvian, estonian (if any) special chars? Is there ready-made method or do i have to make blacklist (non-allowed chars) and regular expressions IsMatch? If no ready-made how to use blacklist?
Cheers & BR -Matti
Hi,
I am dealing with developing and Application for European Client and they have their native character set.
Now I need to have regex which would allow foreign characters like eéèêë etc and am not sure of how this can be done.
Any Suggestions ?
im using doctrine and need to specify the length of a thread body (datatype: blob).
i wonder how many characters i should limit the user to type for a thread body?
what is normal?
thanks!
When I concatenate the following two unicode characters I see both but there is a space between them. Is there anyway to get rid of this space?
StringBuilder sb = new StringBuilder();
int characterCode;
characterCode = Convert.ToInt32("2758", 16);
sb.Append((char)characterCode);
characterCode = Convert.ToInt32("25c4", 16);
sb.Append((char)characterCode);
What are the valid characters that can be used in a URL query variable?
I'm asking because I would like to create GUIDs of minimal string length by using the largest character set so long as they can be passed as a URL query variable (www.StackOverflow.com?query=guiddaf09834fasnv)
I need to make a textbox that only allows numeric characters. I've looked through several numeric plugins and can't find one that I like. I'm looking for either a plugin recommendation with the associated URL or syntax showing how to get started on making my own plugin.
I have recently come across an interesting question on strings. Suppose you are given following:
Input string1: "this is a test string"
Input string2: "tist"
Output string: "t stri"
So, given above, how can I approach towards finding smallest substring of string1 that contains all the characters from string 2?
We are building an app that accesses the Twitter search over JSONP.
It mostly works fine, but occasionally the request returns a JSONP callback that exists of weird unparseable characters.
Here is an example: http://search.twitter.com/search.json?result_type=recent&rpp=100&geocode=51.4375857,-0.1658648,1km&page=5&callback=jsonp1272532482854
(If you change page=5 to a value less than 5 in the URL it works fine)
So
Am I doing something wrong?
Can anyone suggest a workaround?
Hello,
is there a way how to convert HTML entities to their applicable characters. Something similar to html_entity_decode()?
I'm trying to make ordinary text without HTML entities from TinyMCE output.
When writing a login system for a website, it is standard to use some combination of parameterized calls, sanitizing the user input, and/or escaping specialcharacters to prevent SQL injection attacks.
Any good login system, however, should also hash (and possibly salt) every password before it goes into an SQL query, so is it still necessary to worry about SQL injection attacks in passwords? Doesn't a hash completely eliminate any possibility of an SQL injection attack on its own?
If there are more than 2 characters
"Hiiiiiii
My frieeend!!!!!!!"
I need to be reduced to
"Hii
My frieend!!"
Please undestand that in my language there are many words with double chars.
Thnx in advance
kplla
I have a UTF-8 encoded char*.
Is there a standard function to calculate the number of visible characters represented by the byte array?
I'm on Red Hat (RHEL 5).