|
So I have a ruby script that parses HTML pages and saves the extracted string into a DB... but i'm getting weired charcters (usually question marks) instead of plain text...
Eg : ‘SOME TEXT’ instead of 'Some Text'
I've tried HTML entities and CGI:...
Started by Vic on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Ruby has is storing the Unicode escape sequences for quotation marks (instead of ASCII quotation marks.
That the quotation marks in question are not the standard ASCII quotation marks but the Unicode ones .
|
|
Crafting Marks and MC Marks I am disappointed in the daily quest rewards which include marks and greater marks. I have 1134 marks and I am about to stop doing the daily quest because the reward is pointless. Why can't the marks convert into planar attunment...
Started by Weoden on
, 12 posts
by 10 people.
Answer Snippets (Read the full thread at riftgame):
I have 113....
In the 500 Artisan's marks for 1 master craftsman's mark - otherwise it'd be 95 weeks almost 2 yearsOriginally Posted by Weoden I am disappointed in the daily quest rewards which include marks and greater marks.
|
|
What do you call the punctuation marks { and } ?
Braces? Curly brackets? Something else?
Started by TSomKes on
, 22 posts
by 20 people.
Answer Snippets (Read the full thread at stackoverflow):
[ and ] are brackets or square brackets....
Curly braces.
"Braces" -- to me, "brackets" refers to [ and ] .
Curly Braces
" Braces ".
I write or type them when possible.
Curly brackets"
"Brackets"
I don't know, so I try to avoid calling them anything .
|
Ask your Facebook Friends
|
Just curious how is the .NET 4.0 CLR world going to call methods ending in question marks and exclamations? What will the syntax look like calling from C# or VB.NET?
Started by tyndall on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The CLR allows a much larger set of characters to be included in type and member names than is typically available to most languages (such as C# and VB.... .
At a CLR level there is simply no problem.
I think you have to differentiate the cases a bit here .
|
|
Does anyone know why there are question marks (with a number) after the images and css files (when looking at the html code)? And how can I turn them off?
Started by Stevens on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This allows you to set a cache-expiration date for the asset far into the future, but still be able to instantly invalidate it by simply updating... .
From Rails API documentation :
By default, Rails will append all asset paths with that asset‘s timestamp .
|
|
Trying to split a line wherever "," appears (with the quotation marks), The problem is VB.NET uses " to start/end strings, so I tried using .Split(""",""") but that then splits it by " not ","
Started by Hintswen on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
To escape the "-character....
I hope this helps.
Try something like this:
Dim TestToSplit As String = "Foo"",""Bar" Dim Splitted() As String = TestToSplit.Split(New String() {""","""}, StringSplitOptions.None)
I just tested it and got an array with Foo And Bar .
|
|
I'm encrypting a string in java,
encrypted data is only question marks
for eg .. plaintext : jjkkjlkljkj
encrypted text:
While i'm decrypting i'm getting jjkkjlkljkj exact answer ...
Started by Jeeva on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Take it as a byte array, and convert it to a displayable... .
Note that saving the encrypted result in a string will possibly result in loss of the data, so don't do that .
Yes, it's because you can't print the strings that are resulting from the encryption .
|
|
Ran across this line of code:
FormsAuth = formsAuth ?? new FormsAuthenticationWrapper();
What do the two question marks mean, is it some kind of ternary operator? It's hard to look up in Google.
Started by Edward Tanguay on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
FormsAuth = formsAuth ?? new FormsAuthenticationWrapper();
expands to:
FormsAuth = formsAuth != null ? formsAuth : new FormsAuthenticationWrapper();
which further expands... .
It's the null coalescing operator, and quite like the ternary (immediate-if) operator .
|
|
I can get it to remove all the question marks with the code below:
preg_replace('/(\?+)/', '', $string)
No matter what I seem to do I can't get it to also remove all the minus signs as well. Everything I try just breaks the whole regex.
Started by Failpunk on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Replace, or:
preg_replace('/[-?]/', '', $string)
That will remove any question marks or dashes.
|
|
I'm attempting to display some text in my program using (say) Windows GDI and some of the unicode characters are displayed as question marks? What is up?
See also: What does it mean when my text is displayed as boxes?
Started by 1800 INFORMATION on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Make sure that your program characters:
text sometimes appears as question marks
This occurs when Unicode data is converted to an 8-bit converted to question marks....
Can't be converted to ANSI, they are converted to question marks.
|