Shanghai's consumer prices increased 5.2 percent in November, despite slower growth for the food costs.