Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
characters
- Page 1
OpenAI o3 vs Anthropic Claude 4 for Text Classification & Summarization
Programming
Computer Science
1 Week Ago
by usmanmalik57
…}.") content = f"Summarize the following article in 1150
characters
. The summary should look like human created:\n\n{article…
Re: Safely upload a file
Programming
Web Development
3 Weeks Ago
by Dani
I realize I could have done better when coming up with a safe name. As it stands, a file uploaded that has a file name in non-Latin
characters
will just end up with a bunch of underscores. I’m not even sure if that suffices as a file name, but for sure there will be collisions as multiple files are attempting to be saved with the same _ name.
Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks
Programming
Computer Science
2 Months Ago
by usmanmalik57
…}.") prompt = f"Summarize the following article in 1150
characters
. The summary should look like human created:\n\n{article…
How do I remove the last character without breaking the string?
Programming
Web Development
1 Month Ago
by Montasser_1
I try to remove the last character from a string with Japanese text and emojis using this code: <?php $text = "私の名前はダバーです👩🚀"; $new_text = substr($text, 0, strlen($text) - 1); echo $new_text; The output breaks the
characters
and shows garbage. How do I fix this?
Re: How do I remove the last character without breaking the string?
Programming
Web Development
1 Month Ago
by MAY_261
Use mb_substr() instead of substr(). It handles multibyte
characters
and emojis correctly. Here is the correct code: $text = "私の名前はダバーです👩🚀&…
Re: How do I remove the last character without breaking the string?
Programming
Web Development
1 Month Ago
by Montasser_1
> Use mb_substr() instead of substr(). It handles multibyte
characters
and emojis correctly. > > Here is the correct code: &…
characters of cards
Programming
Software Development
16 Years Ago
by Sa_FF
….value, deck[i].cartas.suit); [/CODE] it prints, but all
characters
are wrong... and i look for then in the table…
Re: characters of cards
Programming
Software Development
16 Years Ago
by Sa_FF
… in portuguese.. i just wanna know how to print the
characters
of the suits in my enum... diamond=0, spades=1…
characters should appear on mouse focus :(
Programming
Software Development
14 Years Ago
by localp
… external program), and when the on focus sign appears the
characters
of "hello" should appear there. I studies that…
Characters alignement
Programming
Software Development
12 Years Ago
by nacedo
Hello world ! I have two arrays (max 100
characters
) that I want to align, and add an "-" …
Re: Invalid Email Characters?
Programming
Web Development
20 Years Ago
by samaru
&
characters
are allowed, however, there are some e-mail providers that don't allow you to have that character in your account name.
Re: Converting characters to hexadecimals
Programming
Software Development
11 Years Ago
by rubberman
Characters
are 8 bit integers. Use the appropriate printf format strings. To output the hex value of a character you would use %.02x
Re: characters in c
Programming
Software Development
10 Years Ago
by sunktugg
…. This snippet will read an arbitrary number of
characters
from the user (without feedback) and store them…to print the numerical representation of these
characters
back to the screen. These numbers correspond to… buffer char *buf = malloc(num_chars), *p_buf = buf; // read
characters
from user for(n = 0; n < num_chars; n++) *…
Setting text field to accept only alphabetical characters.
Programming
Web Development
16 Years Ago
by cj1
… class="textfieldMinCharsMsg">Minimum number of
characters
not met.</span><span class… class="textfieldInvalidFormatMsg">Please enter numerical
characters
only.</span><span class="… class="textfieldInvalidFormatMsg">Please enter numerical
characters
only.</span><span class="…
Manipulating characters in a string
Programming
Software Development
15 Years Ago
by youdester
…i Case Is = 1 ' Only append numerical
characters
. If IsNumeric(ch) Then strNumeric += ch.ToString…inserted character from the string containing upper case
characters
. strUpperCase = Replace(strUpperCase, chrUpper.ToString,…
How to return all characters that are within the Unicode 'Lu' class
Programming
Software Development
10 Years Ago
by samuel1991
…中文 ''' #Initalize a list of acceptable
characters
. setalphabet = set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") setdisallowed… '-'): #Removes disllowed consecutive "-"
characters
. Hyphens are meant to use once. #…
Stripping End-Of-Line characters from string
Programming
Software Development
14 Years Ago
by TheWolverine
…the strings in a map. [CODE] //! Strip End-Of-Line
characters
. void TextFileReader::stripEndOfLineCharacters( ) { // Search through container of data… and remove newline
characters
. string::size_type stringPosition_ = 0; string searchString_ = "\r";…
Java: counting characters in a string
Programming
Software Development
13 Years Ago
by willywhomperz
…{ return 0; } /** * int numberOf(String s, String
characters
) * * Returns the number of times any of the chars in… if s is "", then no matter what
characters
is the answer is 0 (zero) * if s …* * @param s is the original String * @param
characters
is the String whose constituent character counts in s we…
Probably a character set problem, trying to substitute characters
Programming
Software Development
17 Years Ago
by edholden
… would iterate through the string object, replacing select
characters
to return a fully-ASCII string, 'ABCD'. It… (called nameString) that may contain non-ASCII
characters
as an argument on the command line. It…function uses the translations list of tuples to swap
characters
where needed: [CODE=python] def convertToAscii(nameString): …
Unicode characters not being read correctly.
Programming
Software Development
15 Years Ago
by majestic0110
…: It reads bytes and decodes them //into
characters
using a specified charset. BufferedReader br = new…Here is a sample of the output, with the troublesome
characters
: [CODE](Greek: Βασιλεία τῶν Ῥωμαίων, Basileía tôn…the text directly from the jTextArea, and the
characters
are copied correctly. (see above sample marked …
Outputting Special Characters From JSON Webservice
Programming
Web Development
14 Years Ago
by FlyByNight73
…when I then output that value any special
characters
are replaced with odd
characters
like the square root symbol. I have checked… the raw JSON string and found that the
characters
all look in-tact but somewhere along the way …it is getting mangled. The
characters
are also not displayed correctly if I do a cfdump…
counting non-space characters in a string or vice versa??
Programming
Software Development
14 Years Ago
by Muhammad Anas
… contains " << ch_spaces << "
characters
(including spaces)\n"; cout << "The file… contains " << ch_nspaces << "
characters
(excluding spaces)\n"; cout << "The file…can't think of a method to count number of
characters
without white spaces (spaces, tabs etc.) Can someone …
Re: Stripping End-Of-Line characters from string
Programming
Software Development
14 Years Ago
by TheWolverine
…moment that's not the case because of the EOL
characters
. So the function I wrote was to strip those EOL… following: [QUOTE]This is line 1.[/QUOTE] This contains 15
characters
, which is what the input string data should contain. When… the function, I'm left with a string with 16
characters
, which means that the string data does not match the…
HTML4 , web page do not display few characters(soft hyphen), Marathi(LangscapeDevpooj
Programming
Web Development
20 Years Ago
by sham
…like action. It works fine for most of the
characters
. But few
characters
get hidden. I am not getting how to …display these
characters
, I tried using character code no instead of character, …6.0 shows some spaces in between
characters
, but firefox shows OK. But many
characters
go missing in FireFox as compared …
Re: Probably a character set problem, trying to substitute characters
Programming
Software Development
17 Years Ago
by edholden
…into. I think the issue is that unicode
characters
are being interpreted as two
characters
rather than one, because they take up… you'll notice that Python treats the two A-like
characters
to not just one iteration, but [I]two[/I]. … it a unicode character and it's iterating over two
characters
in the string rather than one, preventing a match. …
Reading Characters from a file
Programming
Software Development
15 Years Ago
by dchunt
… value in an array.Then i want to send 16
characters
in batches from the array onto a loop in successive… problem: First i can read the first batch of 16
characters
easily. But after the second or third it starts showing…] Now unfortuantely it only prints about thew first 32-35
characters
properly,after that it goes haywire. What's wrong ? Any…
Determine if fields of a CSV file has whitespace characters only
Programming
Software Development
15 Years Ago
by gangemia
… value Output: Returns True if string contains only whitespace
characters
otherwise returns False """ if (str …break if flag == 0: # string only contains whitespace
characters
return True else: # string contains as least one alphanumeric …
How to check whether the string contains only the specified characters ????
Programming
Software Development
15 Years Ago
by j_kathiresan
… i'm skipping the line if it has the above
characters
as below Pattern.compile([,:+ ]) Matcher matcher = pattern.matcher(…way to check whether the string contains only those
characters
and nothing else, so that i can directly skip…regular expression which should say the line contains only those
characters
and nothing else, so we can skip the line…
Re: counting non-space characters in a string or vice versa??
Programming
Software Development
14 Years Ago
by Muhammad Anas
…contains " << ch_spaces << "
characters
(including spaces)\n"; cout << "The …contains " << ch_no_spaces << "
characters
(excluding spaces)\n"; cout << "The file…am actually using it to count the number of
characters
including white-spaces not without them. Afterwards I am…
Re: counting non-space characters in a string or vice versa??
Programming
Software Development
14 Years Ago
by Narue
…; char ch; while (in.get(ch)) { ++total; // All
characters
including whitespace if (ch == '\n') ++lines; if (std::isspace(…gt; 0) ++lines; std::cout<<"Total
characters
("<< total <<")\n" …
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC