|
by: tertius |
last post by:
Is there a better way to append certain chars in a string with a
backslash that the example below?
chr = "#$%^&_{}" # special chars to look out for
str = "123 45^ & 00 0_" # string to convert
n = "" # init new string
for i in str:
if i in chr: # if special character in str
n+='\\' # append it with a backslash
n+=i
|
by: Jonas Meurer |
last post by:
hello,
my script selects a comment saved as VARCHAR in MySQL and displays it
inside an html page.
the problem is, that the comment contains several special characters, as
mysterious utf-8 hyphens, german umlauts, etc.
i could write a function to parse the comment and substitute special
chars with the relevant html code, but maybe this already exists in some
|
by: Steffen Gebert |
last post by:
Hello,
I want to fetch the page via php from a mysql-db, which is called by an
emulated filename (mod_rewrite, but that might be unimportant).
So I have a file, which is called by guestbook.html - so I have to find the entry
in my db, where the page title is guestbook. But there isn't a only column for
this virtual filenames, but only entries like "Guestbook", "This & much
more..." and so on.
Becaus I'm not able to use "This & much...
|
by: dutch disCo |
last post by:
Hi,
I'm trying to use GET method to pass variables through my script files.
Unfortunately, when a special char (&, ?, +) is being posted the
variable gets trimmed in a very strange way. I'm aware, that's connected
with the way the GET method passes variable values, but I don't know how
to make GET to take the variable value "as it is" without interpreting
special chars as special chars.
So, how should I send GET variables in order not...
|
by: VMI |
last post by:
When I execute a ReadLine from an ascii file with special chars (ie. the
'Ñ' in "NUÑEZ PEREZ"), it automatically deletes this character. So "NUÑEZ
PEREZ" becomes "NUEZ PEREZ". How can this be avoided? The reason being that
I compare this string to a string in an Access DB (btw, Access also screws
up with the character by replacing "Ñ" with "-"). So when I compare these
two strings, they won't match because both systems storing the data...
|
|
by: roN |
last post by:
Hey,
I got following:
<form name="Formular" method="post" onSubmit="return chkFormular()"
action="mail.php" enctype="text/plain">
....
....
....
<td align="right" valign="top" class="text"><font
|
by: abhi147 |
last post by:
Hi ,
I have been trying to convert a 32 bit string like
"b2a4fdf15af7c4f215e1909be4707bdb" to convert to a string of special
chars like "²¤ýñZ÷Äòá?›äp{Û"
I have tried a lot of things .. but nothing works . I have no idea
how to go further .
Can anyone help me ?
Thanks in advance.
|
by: Alex |
last post by:
Hi all -
Is there a standard way to handle special chars in strings in dotnet? I'm
using csharp and having two seperate problems...
1. Passing in args...
I need to pass in an arg that points to a sqlserver2005 instance... it
comes in looking like this in the debugger:
|
by: TheRealDan |
last post by:
Hi all.
I'm having a problem with a special characters.
I have php script that reads from an xml file and writes to a mysql db.
It's a script called phptunest that I found on the net, although the
original website for the author appears to be gone.
It works really nicely except when it hits special characters. Everything from a sp char forward
just gets lost. It is using mysql_real_escape_string, but that doesn't seem to help with the ...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|