Project

General

Profile

« Previous | Next » 

Revision 8264

use UTF-8 if request encoding not given. https://projects.ecoinformatics.org/ecoinfo/issues/6100

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
646 646
		Logger logMetacat = Logger.getLogger(MetaCatServlet.class);
647 647

  
648 648
		String requestEncoding = request.getCharacterEncoding();
649
		if (requestEncoding == null) {
650
			logMetacat.debug("null requestEncoding, setting to application default: " + DEFAULT_ENCODING);
651
			request.setCharacterEncoding(DEFAULT_ENCODING);
652
		}
649 653
		logMetacat.debug("requestEncoding: " + requestEncoding);
650 654
		
651 655
		// Update the last update time for this user if they are not new

Also available in: Unified diff