Redirect to UTF-8 URL with ColdFusion

前端 未结 4 1743
孤城傲影
孤城傲影 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条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-12 15:57

    Another potential work around for this is to URL Encode the portions of the URL that cflocation will break.

    For example, I have some conditional testing that will 301 redirect if the combination of parameters are known to not work well together. One of those parameters is composed of Greek characters. Our solution is to use URLEncodedFormat() where needed.

    
        
        
    
    

提交回复
热议问题