The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Unsorted >> userreg ( å ä ö )
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1252436589

Message started by Blixten on 09/08/09 at 21:03:08

Title: userreg ( å ä ö )
Post by Blixten on 09/08/09 at 21:03:08

(userreg) the registration does not work with ( å ä ö )
looks like this in the regfile ( Källarbacksv&#xE4 ) should look like this ( källarbacksvägen 4 )

Title: Re: userreg ( å ä ö )
Post by Dieter Werner on 09/09/09 at 00:00:38

Please, become a little more specific.

Title: Re: userreg ( å ä ö )
Post by Blixten on 09/09/09 at 08:25:01

When I make a new registrering becomes å ä ö in the file blixten.dat to this ( Kä )
then when you have won an auction and address details are sent, you can not read the å ä ö

blixten.dat looks like this
c7hec6ri
info@webbprodukter.se
Rune Blixt
Källarbacksvägen 4
Krylbo Dalarna 77595
0226-19330
--


c7hec6ri
info@webbprodukter.se
Rune Blixt
Källarbacksvägen 4
Krylbo Dalarna 77595
0226-19330
--



Gratulerar!

Du är vinnaren av auktionen nummer: 1252409944
Titel: xxxxxxx
Ditt vinnande bud var Kr      100,00

Vänligen kontakta säljaren för en överenskommelse ang betalning och frakt.
rune Blixt
Källarbacksvägen 4
Krylbo Dalarna 77595
info@webbprodukter.se
Telefon: 0226-19330
Fax: --

Tack för att du använde Folkärna Auktion

Title: Re: userreg ( å ä ö )
Post by Dieter Werner on 09/09/09 at 16:38:38

Try this:

search eAuction.pl for

Code:
sub escape_content


search sub escape_content for

Code:
$form{$key} =~ s/([^\s\w.,@%-])/sprintf("&#x%X;", ord($1))/ge;


insert

Code:
$form{$key} =~ /[åäö]/ && next;

above the line which has been found.
and ...
complete the content of the square brackets with the equivalent capital letters.

It's not been tested because I cannot use scandinavian letters.

Title: Re: userreg ( å ä ö )
Post by Blixten on 09/10/09 at 09:44:49

Thank you very much. Now it works as it should
I've added the code above that you said




           $form{$key} =~ /[åäö]/ && next;
           $form{$key} =~ s/([^\s\w.,@%-])/sprintf("&#x%X;", ord($1))/ge;

Title: Re: userreg ( å ä ö )
Post by Dieter Werner on 09/10/09 at 11:41:58

Okay ...
now put the capital letters of åäö into the brackets too
Example:
[åäöÅÄÖ]

The eAuction Support Forums » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.