Prince William will represent his father King Charles at the funeral of King Harald V of Norway, Buckingham Palace announced.