Redirect to UTF-8 URL with ColdFusion

前端 未结 4 1706
孤城傲影
孤城傲影 2021-01-12 15:11

I\'m working on a system that uses UTF-8 characters in folder names for URLs. There\'s been no problem in navigating to these URLs and everything works as expected - exc

4条回答
  •  -上瘾入骨i
    2021-01-12 16:03

    I went to test this and didn't see the same result. But then I played with it a little more and tried using

    
    

    Immediately, I was able to see the exact same issue that you did. It seems natural to include it in any page. This is very speculative, but CFAS may be doing some kind of URL encoding in the cflocation tag when used in conjunction with the pageencoding directive.

    Assuming you have this in your code somewhere, try removing it for the redirect. If that works, then I would report this as a bug to Adobe.

    Just FYI, I did this -- Output with encoding

    
    geschäft/käfer/
    

    And I got

    geschäft/käfer/
    

    But when I did this -- Relocation with encoding

    
    
    

    It relocated me to

    gesch%E4ft/k%E4fer/
    

    And when I did this --Output without encoding

    geschäft/käfer/
    
    

    I got

    geschäft/käfer/
    

    But when I did this -- Relocation without encoding

    
    

    Then I was relocated to

    geschäft/käfer/
    

提交回复
热议问题