Hello All,
I have a string as follows - MFMFMF
now i want to change this string to FMFMFM how to do this , help needed pls
i had tried
select replace(replace('mfmfmf','M','F'),'F','M')
this gives me result - MMMMMM
which i donot what
i want the output to be FMFMFM
Need your help
D.Mahesh
...
What's a good estimate/conversion/formula to figure out X# characters = Y# bytes?
...
if the search form is blank, it should display an error that something should be entered by the user. it should only show those results which contain the keywords the user has entered in the search textbox.
however, if the user enters % or _ or +, it displays all results. how do i display an error when the user enters these wildcard ch...
Hi.
I am maintaining some Java code that I am currently converting to C#.
The Java code is doing this:
sendString(somedata + '\000');
And in C# I am trying to do the same:
sendString(somedata + '\000');
But on the '\000' VS2010 tells me that "Too many characters in character literal". How can I use '\000' in C#? I have tried to fin...
I'm working on a predictive text solution and have all the words being retrieved from a Trie based on input for a certain string of characters, i.e. "at" will give all words formed with "at" as a prefix. The problem that I have now, is that we are also supposed to return all other possibilities from pressing these 2 buttons, Button 2 and...
I have a function that is supposed to calculate the number of times a letter occurs in a sentence, and based on that, calculate the probability of it occurring in the sentence. To accomplish this, I have a sentence:
The Washington Metropolitan Area is the most educated and affluent metropolitan area in the United States.
An array o...
I just took an exam where i was asked the following:
Write the function body of each of the methods GenStrLen, InsertChar and StrReverse for the given code bellow. You must take into consideration the following;
How strings are constructed in C++
The string must not overflow
Insertion of character increases its length by ...
$ser = 'a:2:{i:0;s:5:"héllö";i:1;s:5:"wörld";}'; // fails
$ser2 = 'a:2:{i:0;s:5:"hello";i:1;s:5:"world";}'; // works
$out = unserialize($ser);
$out2 = unserialize($ser2);
print_r($out);
print_r($out2);
echo "<hr>";
But why?
Should I encode before serialzing than? How?
I am using Javascript to write the serialized string to a hidden fi...
I have textboxes where i only want signed a max number of characters in. an then I'll hear how i could check it easily in c#
...
I have a field and want to prevent some illegal characters while showing the user as he types.
How can I do this in follow example?
$('input').bind("change keyup", function() {
var val = $(this).attr("value");
/*
if (val --contains-- '"') {
$(this).css("background", "red");
val = val.replace('"', "");
...
I am currently building a blog system, and the class file i.e class Blog{}, is running ok, when I try it on its own, but, when I try to use it in the pages of the site that have css, it looks weird and full stop, and apostrophes are replaced by strange characters! please help, this is my first time of using oo for development,
...
I have some form on the website where users can add new pages. I must generate SEO friendly URLs and make this URLs unique.
What characters can I display in URL, I know that spaces I should convert to underscore:
" "->"_" and before it - underscores to something else, for example:
"_"->/underscore
It is easy make title from URL back....
Hi stackers!
I'm reading email from a maildir and some emails have weird sets of characters in them:
=3D
=09
I think =3D is = and =09 is a space. There are some others, but I'm not sure:
=E2
=80
=93
Does anyone know what these are and what encoding issues I'm dealing with here?
BTW, I tried fetching these email via POP3 and it's ...
Hi, Can anyone tell me how to get the Unicode name of a character in MFC.
e.g. -
Character - Name
Z - LATIN CAPITAL LETTER Z
[ - LEFT SQUARE BRACKET
etc.
Thanks,
Dev
...
In javascript I am used to just being able to pick any character from a string like "exm[2]" and it would return to me the third character in a string. In C is there a way to do that or something without a function that requires a buffer?
...
I'm working on a project which requires us developing our own intermediate SMTP relay to handle some outgoing mail so that it abides by certain rules. For the most part, I have everything functioning but I am having an odd issue that does not seem to be addressed by the SMTP spec. I'm not super familiar with sockets, either, so that isn'...
Hi,
I'm using a webservice that in my request includes a ¥ symbol (chr 0165). I have set the encoding on my soap client to:
$soap = new MySoapClient('address.wsdl',
array('trace' => 1, 'encoding'=>'ISO-8859-1'));
But when I look at my outgoing soap package the "¥" is changed to "Â¥"
I'm not good at encoding but I've tried a number...
Hi, i have a MySQL DB where the rows have characters like %20, %2C, etc...
how can i remove them from the DB without editing the file on notepad?
The .sql file is about 300mb in size...
thanks
...
I'm writing a lexer (with re2c) and a parser (with Lemon) for a slightly convoluted data format: CSV-like, but with specific string types at specific places (alphanumeric chars only, alphanumeric chars and minus signs, any char except quotes and comma but with balanced braces, etc.), strings inside braces and strings that look like funct...
I need a javascript function for validating alphabetic input with a few extra characters from the Italian languages, namely: àèéìòóù
I saw a regex before with something like:
[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]
What are those codes named and where can I find the right values?
I would like to use these into following function:
...