Hi!

I've got the following code in an included file:

<cfset REQUEST.userAuthenticated = false>
<cflogin>
        <cfif isDefined("CFLOGIN")>
                <cfif CFLOGIN.name eq 'loginfoo' and CFLOGIN.password eq 
'fürdich'>
                        <cfset REQUEST.userAuthenticated = true>
                </cfif>
        </cfif>
</cflogin>
<div class="someclass">
<cfif Not REQUEST.userAuthenticated>
        <cfheader statuscode="401">
        <cfheader name="WWW-Authenticate" value="Basic realm=""Bitte 
Zugangsdaten für den Bereich eingeben:""">
        <div class="subtitel">F&uuml;r diesen Bereich ben&ouml;tigst Du 
spezielle Zugangsdaten.</div>
<cfelse>
        <div class="subtitel">Dein Login war erfolgreich!</div>
</cfif>
</div>

The site itself is in UTF-8; the include is stored as UTF-8 with BOM. The 
special char in the password 'fürdich' is correctly encoded as UTF-8. 
Authentication fails however, the auth-popup is being displayed again and 
again. The very same thing did work with ColdFusion MX 6.1.

For authentication to work with ColdFusion 8 when the password includes this 
special char, we have to save the include file in ISO-8859-1 encoding. This 
leads to another problem, though: The 'ü'-character in the "Basic 
realm"-message is not displayed correctly, there's a ý-character being 
displayed instead. On the upside, the user can actually log in successfully 
after entering the password with the umlaut.

Any ideas on what's going wrong here?

Kind regards

   Markus


Computec Media AG
Sitz der Gesellschaft und Registergericht: Fürth (HRB 8818)
Vorstandsmitglieder: Johannes S. Gözalan (Vorsitzender) und Rainer Rosenbusch
Vorsitzender des Aufsichtsrates: Jürg Marquard 
Umsatzsteuer-Identifikationsnummer: DE 812 575 276



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315185
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to