Hi, i'm working on an ASP project with prototype.js but i just can't
get special chars to work as they should.
I'm using UTF-8 pages but as soon as i call a page containing for
example å,ä,ö, < or it's replaced with a questionmark.
I call the pages using
new Ajax.Updater(ta rget, page, {asynchronous:t rue, evalScripts:tru e});
Any ideas? 2 3348 di*****@styleis h.net wrote:
Hi, i'm working on an ASP project with prototype.js but i just can't
get special chars to work as they should.
I'm using UTF-8 pages but as soon as i call a page containing for
example å,ä,ö, < or it's replaced with a questionmark.
I call the pages using
new Ajax.Updater(ta rget, page, {asynchronous:t rue, evalScripts:tru e});
Any ideas?
You will get better help on Prototype in the Ruby on Rails Spin-offs
group:
<URL: http://groups.google.com/group/rubyonrails-spinoffs >
--
Rob di*****@styleis h.net a écrit :
Hi, i'm working on an ASP project with prototype.js but i just can't
get special chars to work as they should.
I'm using UTF-8 pages but as soon as i call a page containing for
example å,ä,ö, < or it's replaced with a questionmark.
I call the pages using
new Ajax.Updater(ta rget, page, {asynchronous:t rue, evalScripts:tru e});
Any ideas?
This is not a Prototype problem, and neither is a Javascript one ; I
found out that, when using accented characters (é, è, à, ô, etc.)
ISO-8859-1 work better, as UTF-8 treats those characters as two-bytes
characters, etc.
My two advices for this kind of problem are :
1) try different encodings
2) escape your characters with HTML entitites ; i.g. é = é, è
= è
Good luck !
-Yanick This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: arno |
last post by:
Hi,
I want to search a substring within a string :
fonction (str, substr) {
if (str.search(substr) != -1) {
// do something
}
}
|
by: chuck |
last post by:
Hi,
Firstly, I don't know if this is just and isolated thing with the
prototype.js library or
is a problem in general with ajax calls with a '+' character, so i am
posting it here.
I am trying to send input from a form to do a live php boolean
search. so an example
search string is
|
by: bigdadro |
last post by:
I've created a new class using prototype.js. After I make the
ajax.request all references to this.myClassMethodorVariable are lost.
Does the ajax method blow out the object persistance? I'm fairly new to
OOP javascript so could be (and probably am) overlooking some detail.
Below is the logic of what i'm trying to do.
//Javascript code
var myClass = Class.create();
myClass.prototype={
initialize: function(fm) {
|
by: dougwig |
last post by:
I'm trying to handle the scenario where a user's session times out and
and their ajax request triggers a redirection by the webserver (302
error?).
I'm using Prototype 1.4 and the my works great with Firefox,but with
IE6 the onFailure never gets called and the request never completes.
My code:
var ajaxReq = new Ajax.Request( url, {method: 'post', parameters:
|
by: Tony |
last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET
distribution - I'm pretty concerned about this. Does anyone know if this
is the same "prototype.js" that is not well-liked around here?
If so, do you know if Ajax.NET can be used without prototype.js?
--
"The most convoluted explanation that fits all of the made-up facts is
the most likely to be believed by conspiracy theorists. Fitting the
| |
by: Gerry Vandermaesen |
last post by:
Hi,
Does anyone have a freely available JavaScript JSON stringifier. So far
my search has been in vain, the one offered on
http://www.json.org/json.js does not seem to work for me.
|
by: Dautkhanov |
last post by:
Hello !
Does anybody have cutted version of prototype.js with
the AJAX functionality only?
I am a new in prototype.js topic, so I think this task
should be done by other developers.
Maybe protorype.js should be splitted into small pieces
of the js scripts with groupped functionality
|
by: jacobstr |
last post by:
I've noticed Object.extend used in a few different ways and I'm having
trouble distinguishing why certain usages apply to a given situation.
On line 804 Ajax.Base is defined as follows:
Ajax.Base = function() {};
Ajax.Base.prototype = {
setOptions: function(options) { <...>
|
by: xNephilimx |
last post by:
lHi guys!
I'm having a little problem that's getting on my nerves, I couldn't find a solution, I also tryed googling it and I found nothing... (my field of expertise is in AS 2 and 3, but I still lack some JavaScript solid knowdlege)
The problem is that when I try to send a form's content with Ajax (I'm using the prototype library), for some reason the latin characters (accents and stuff, like áéíóú) turn a mess when I try to store them in...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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
| |