Dollar rises ahead of CPI; euro, yuan weakens