just a few moments ago i saw this in the django documentation. Now
works fine. Thanks.
On 1 sep, 12:10, Tom Evans wrote:
> On Mon, Aug 30, 2010 at 10:45 PM, refreegrata wrote:
> > now works for all characters. I don't know why, but now finally
> > works. ñ is converted to "%C3%B1", ó is convert
On Mon, Aug 30, 2010 at 10:45 PM, refreegrata wrote:
> now works for all characters. I don't know why, but now finally
> works. ñ is converted to "%C3%B1", ó is converted to "%C3%B3", + to
> "%2B", ...
>
> thanks.
>
> P.D.: I hate use special characters in an url, generaly is a bad idea,
> but is
now works for all characters. I don't know why, but now finally
works. ñ is converted to "%C3%B1", ó is converted to "%C3%B3", + to
"%2B", ...
thanks.
P.D.: I hate use special characters in an url, generaly is a bad idea,
but is necessary in my application.
The client want to filter registers ac
use a ñ in a url isn't a good way to work... why don't you change it for a
n? With a ñ you could have problems between explorers.
Anyway, you can use link
On Mon, Aug 30, 2010 at 23:29, refreegrata wrote:
> i know how configure my urls.py is ok, with regular expression. but i
> must do somethin
i know how configure my urls.py is ok, with regular expression. but i
must do something like
link
Now works. In the browser url the character "ñ" is not converted to
"%C3%B1", but the character "+" is converted to "%2B". maybe i have
some problems with the theory. Maybe the character "ñ" isn't a
With django you can define you url in urls.py as:
url(r'^sample$', sample, name='the_name'),
and then in your template use: {% url the_name %}
If it need a id or similar you can provide it with {% url the_name ID %}
On Mon, Aug 30, 2010 at 23:08, refreegrata wrote:
> for the moment i don´t ha
for the moment i don´t have a problem, the section of my site work's
fine. Maybe is just a PHP habit.
In php when a wont to build an url in the template i do somethin like
echo 'http://mysite.php?aaa='.urlencode($aaa).'>link';
--
because $aaa can
Why do you like to do it?
I think that your problem is with codification, and not with urlenconde...
try to search about utf8 and html
On Mon, Aug 30, 2010 at 22:09, refreegrata wrote:
> i'm sorry in my last time accidentally send the post before of
> finish.
> I try to do in the template some
i'm sorry in my last time accidentally send the post before of
finish.
I try to do in the template something like
{{ my_var|urlencode }}
but don't work. Can i do something like an urlencode in the template?
P.D.: I'm from Chile.
--
You received this message because you are subscribed to the Go
This a Python question, not a Django question.
import urllib
urllib.quote("+ ñ ó")
'%2B%20%C3%B1%20%C3%B3'
Shawn
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe
The urlquote() function from django.utils.http and the "urlencode" template filter might be exactly
what you're looking for.
Regards,
Felix
refreegrata schrieb:
Hello lista, I'm a newbie in django. In php i have the urlencode
function for encoding an url with characters "+","ñ","ó", Has
example from one of my codes...
import urllib
parameters = ({'langpair': '%s|%s' % (self.detected_language, 'en'),
'v': '1.0',
'q': self.words_list.encode('utf-8') })
urllib.urlencode(parameters)
but what do you need this? Becasue you can find a more
Hello lista, I'm a newbie in django. In php i have the urlencode
function for encoding an url with characters "+","ñ","ó", Has
Django an urlencode or similar function?
Thanks for read, and sorry my bad english
P.D.: django 1,2.1
--
You received this message because you are subscribed to t
13 matches
Mail list logo