mirror of
				https://github.com/bblanchon/ArduinoJson.git
				synced 2025-11-04 08:31:36 +01:00 
			
		
		
		
	
		
			
	
	
		
			12 lines
		
	
	
		
			285 B
		
	
	
	
		
			C++
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			285 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| 
								 | 
							
								#define ARDUINOJSON_DECODE_UNICODE 1
							 | 
						||
| 
								 | 
							
								#include <ArduinoJson.h>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include <catch.hpp>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								TEST_CASE("ARDUINOJSON_DECODE_UNICODE == 1") {
							 | 
						||
| 
								 | 
							
								  DynamicJsonDocument doc(2048);
							 | 
						||
| 
								 | 
							
								  DeserializationError err = deserializeJson(doc, "\"\\uD834\\uDD1E\"");
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  REQUIRE(err == DeserializationError::Ok);
							 | 
						||
| 
								 | 
							
								}
							 |