[SPARK-29286][PYTHON][TESTS] Uses UTF-8 with 'replace' on errors at Python testing script
[SPARK-29286][PYTHON][TESTS] Uses UTF-8 with 'replace' on errors at Python testing script

### What changes were proposed in this pull request?

This PR proposes to let Python 2 uses UTF-8, instead of ASCII, with permissively replacing non-UDF-8 unicodes into unicode points in Python testing script.

### Why are the changes needed?

When Python 2 is used to run the Python testing script, with `decode(encoding='ascii')`, it fails whenever non-ascii codes are printed out.

### Does this PR introduce any user-facing change?

To dev, it will enable to support to print out non-ASCII characters.

### How was this patch tested?

Jenkins will test it for our existing test codes. Also, manually tested with UTF-8 output.

Closes #26021 from HyukjinKwon/SPARK-29286.

Authored-by: HyukjinKwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>
Signed-off-by: Dongjoon Hyun <9b02cb7e37158797a8e22c559f7c5f5ecd28ea57@apple.com>

ptkool/spark,shuangshuangwang/spark,zzcclp/spark,shaneknapp/spark,zuotingbing/spark,mahak/spark,nchammas/spark,kevinyu98/spark,dongjoon-hyun/spark,holdenk/spark,apache/spark,HyukjinKwon/spark,wzhfy/spark,jkbradley/spark,ptkool/spark,xuanyuanking/spark,taroplus/spark,maropu/spark,goldmedal/spark,mahak/spark,ConeyLiu/spark,gengliangwang/spark,milliman/spark,xuanyuanking/spark,wangyum/spark,nchammas/spark,chuckchen/spark,wangyum/spark,dongjoon-hyun/spark,skonto/spark,wzhfy/spark,wangmiao1981/spark,darionyaphet/spark,ConeyLiu/spark,zzcclp/spark,jiangxb1987/spark,skonto/spark,dbtsai/spark,ueshin/apache-spark,HyukjinKwon/spark,goldmedal/spark,shaneknapp/spark,ueshin/apache-spark,wangyum/spark,gengliangwang/spark,goldmedal/spark,xuanyuanking/spark,spark-test/spark,vinodkc/spark,kevinyu98/spark,shaneknapp/spark,dongjoon-hyun/spark,zuotingbing/spark,maropu/spark,dbtsai/spark,shaneknapp/spark,srowen/spark,holdenk/spark,darionyaphet/spark,dbtsai/spark,shuangshuangwang/spark,cloud-fan/spark,rednaxelafx/apache-spark,WeichenXu123/spark,WeichenXu123/spark,shuangshuangwang/spark,ptkool/spark,JoshRosen/spark,witgo/spark,rednaxelafx/apache-spark,taroplus/spark,BryanCutler/spark,darionyaphet/spark,taroplus/spark,wangmiao1981/spark,milliman/spark,caneGuy/spark,goldmedal/spark,nchammas/spark,vinodkc/spark,hvanhovell/spark,caneGuy/spark,ueshin/apache-spark,skonto/spark,nchammas/spark,srowen/spark,dongjoon-hyun/spark,skonto/spark,skonto/spark,wangyum/spark,shaneknapp/spark,caneGuy/spark,skonto/spark,jkbradley/spark,spark-test/spark,HyukjinKwon/spark,vinodkc/spark,darionyaphet/spark,JoshRosen/spark,zero323/spark,xuanyuanking/spark,ueshin/apache-spark,darionyaphet/spark,wangyum/spark,wzhfy/spark,gengliangwang/spark,chuckchen/spark,milliman/spark,apache/spark,taroplus/spark,zzcclp/spark,HyukjinKwon/spark,srowen/spark,JoshRosen/spark,dbtsai/spark,chuckchen/spark,HyukjinKwon/spark,zuotingbing/spark,wangyum/spark,taroplus/spark,milliman/spark,dbtsai/spark,jkbradley/spark,cloud-fan/spark,zzcclp/spark,maropu/spark,mahak/spark,maropu/spark,JoshRosen/spark,jiangxb1987/spark,holdenk/spark,dongjoon-hyun/spark,jiangxb1987/spark,apache/spark,caneGuy/spark,spark-test/spark,spark-test/spark,hvanhovell/spark,wangmiao1981/spark,rednaxelafx/apache-spark,wangmiao1981/spark,WeichenXu123/spark,holdenk/spark,witgo/spark,srowen/spark,spark-test/spark,rednaxelafx/apache-spark,darionyaphet/spark,zero323/spark,JoshRosen/spark,gengliangwang/spark,zero323/spark,wangmiao1981/spark,hvanhovell/spark,zuotingbing/spark,BryanCutler/spark,milliman/spark,jkbradley/spark,xuanyuanking/spark,jiangxb1987/spark,dongjoon-hyun/spark,witgo/spark,zuotingbing/spark,ConeyLiu/spark,xuanyuanking/spark,hvanhovell/spark,gengliangwang/spark,wangmiao1981/spark,shuangshuangwang/spark,jkbradley/spark,gengliangwang/spark,dbtsai/spark,ptkool/spark,jkbradley/spark,zuotingbing/spark,vinodkc/spark,srowen/spark,jkbradley/spark,mahak/spark,goldmedal/spark,kevinyu98/spark,zero323/spark,chuckchen/spark,witgo/spark,zero323/spark,srowen/spark,WeichenXu123/spark,kevinyu98/spark,WeichenXu123/spark,witgo/spark,rednaxelafx/apache-spark,hvanhovell/spark,shuangshuangwang/spark,caneGuy/spark,vinodkc/spark,caneGuy/spark,wangyum/spark,holdenk/spark,ptkool/spark,ConeyLiu/spark,hvanhovell/spark,shaneknapp/spark,zzcclp/spark,HyukjinKwon/spark,ueshin/apache-spark,BryanCutler/spark,vinodkc/spark,holdenk/spark,BryanCutler/spark,chuckchen/spark,jiangxb1987/spark,goldmedal/spark,dongjoon-hyun/spark,milliman/spark,shuangshuangwang/spark,kevinyu98/spark,cloud-fan/spark,JoshRosen/spark,vinodkc/spark,ConeyLiu/spark,dbtsai/spark,spark-test/spark,xuanyuanking/spark,zero323/spark,apache/spark,chuckchen/spark,mahak/spark,WeichenXu123/spark,zuotingbing/spark,wangmiao1981/spark,shaneknapp/spark,ConeyLiu/spark,witgo/spark,wzhfy/spark,rednaxelafx/apache-spark,maropu/spark,goldmedal/spark,apache/spark,srowen/spark,chuckchen/spark,witgo/spark,hvanhovell/spark,taroplus/spark,BryanCutler/spark,gengliangwang/spark,JoshRosen/spark,kevinyu98/spark,shuangshuangwang/spark,zero323/spark,nchammas/spark,ueshin/apache-spark,cloud-fan/spark,wzhfy/spark,jiangxb1987/spark,wzhfy/spark,apache/spark,nchammas/spark,ptkool/spark,cloud-fan/spark,zzcclp/spark,BryanCutler/spark,mahak/spark,rednaxelafx/apache-spark,ptkool/spark,cloud-fan/spark,matthewfranglen/spark,maropu/spark,cloud-fan/spark,darionyaphet/spark,skonto/spark,taroplus/spark,apache/spark,HyukjinKwon/spark,wzhfy/spark,milliman/spark,mahak/spark,holdenk/spark,ueshin/apache-spark,nchammas/spark,WeichenXu123/spark,kevinyu98/spark,caneGuy/spark,ConeyLiu/spark,spark-test/spark,maropu/spark,BryanCutler/spark,jiangxb1987/spark,zzcclp/spark